Description
The mw app dependency update command fails for ImageMagick (im) with a 404 error when using any version specification, even though versions exist in the API.
Steps to Reproduce
-
List available ImageMagick versions (works):
mw app dependency versions im
# Shows: 7.1.1-41, 7.1.1-39, 7.0.7-26, etc.
-
Try to update dependency with version range (fails):
mw app dependency update APP_ID --set "im=~7"
-
Try with exact version (also fails):
mw app dependency update APP_ID --set "im=7.1.1-41"
Expected Behavior
The dependency should be updated to the specified version.
Actual Behavior
GET v2/system-softwares/.../versions
Response 404 Not Found
Message: no system software versions found
Root Cause Analysis
The API returns incorrect internalVersion values for ImageMagick. When querying the versions endpoint directly (without versionRange), the internalVersion field shows:
71.1.41 instead of 7.1.1-41
70.7.26 instead of 7.0.7-26
The major version appears to be concatenated with the minor version (71 instead of 7.1), causing the semver matcher to fail.
Comparison with working software (GraphicsMagick):
GraphicsMagick has correctly formatted internalVersion values like 1.3.38, and mw app dependency update --set "gm=~1" works as expected.
Environment
- mw CLI version: 1.12.0
- OS: macOS (Darwin 24.6.0)
Workaround
None - ImageMagick cannot be configured via CLI.
Note
This appears to be an API/database issue - the internalVersion values for ImageMagick are incorrectly formatted in the backend.
Description
The
mw app dependency updatecommand fails for ImageMagick (im) with a 404 error when using any version specification, even though versions exist in the API.Steps to Reproduce
List available ImageMagick versions (works):
mw app dependency versions im # Shows: 7.1.1-41, 7.1.1-39, 7.0.7-26, etc.Try to update dependency with version range (fails):
mw app dependency update APP_ID --set "im=~7"Try with exact version (also fails):
mw app dependency update APP_ID --set "im=7.1.1-41"Expected Behavior
The dependency should be updated to the specified version.
Actual Behavior
Root Cause Analysis
The API returns incorrect
internalVersionvalues for ImageMagick. When querying the versions endpoint directly (without versionRange), theinternalVersionfield shows:71.1.41instead of7.1.1-4170.7.26instead of7.0.7-26The major version appears to be concatenated with the minor version (71 instead of 7.1), causing the semver matcher to fail.
Comparison with working software (GraphicsMagick):
GraphicsMagick has correctly formatted
internalVersionvalues like1.3.38, andmw app dependency update --set "gm=~1"works as expected.Environment
Workaround
None - ImageMagick cannot be configured via CLI.
Note
This appears to be an API/database issue - the
internalVersionvalues for ImageMagick are incorrectly formatted in the backend.