Skip to content

registry: add imagemagick backend aqua:ImageMagick/ImageMagick for Windows support#10214

Closed
iki wants to merge 1 commit into
jdx:mainfrom
iki:fix/fix-imagemagick-on-windows
Closed

registry: add imagemagick backend aqua:ImageMagick/ImageMagick for Windows support#10214
iki wants to merge 1 commit into
jdx:mainfrom
iki:fix/fix-imagemagick-on-windows

Conversation

@iki

@iki iki commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

It is required to install mise use -g imagemagick on Windows. Current backends conda and asdf in registry/imagemagick.toml don't support Windows.

I followed @jdx suggestion in #8476 to add ImageMagick directly to aqua registry. That was completed in aquaproj/aqua-registry#50281 and works OK aqua g -i ImageMagick/ImageMagick && aqua i.

⚠️ Blocked by #10215

@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5ecb7229-426a-45ab-a9db-2b0c438fbc0d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps

greptile-apps Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds aqua:ImageMagick/ImageMagick as the first (default) backend in registry/imagemagick.toml, filling a gap on Windows where the existing conda and asdf backends are unavailable. The aqua entry was recently merged into the aqua-registry (aquaproj/aqua-registry#50281) and verified to work.

  • Prepends aqua:ImageMagick/ImageMagick to the backends list so it is tried first on all platforms, including Windows.
  • conda:imagemagick and asdf:mise-plugins/mise-imagemagick remain as fallbacks for platforms where aqua is not configured.
  • The pre-existing commented-out test line is unchanged; other aqua-backed tools in the registry do have their tests enabled, so this could be revisited.

Confidence Score: 5/5

Safe to merge — the change is a single-line addition of a well-tested aqua backend with no logic changes.

The change touches only one registry entry file and adds a backend that was verified working by the author. The existing fallback backends are preserved, so there is no regression risk for users on platforms where aqua is not set up.

No files require special attention.

Important Files Changed

Filename Overview
registry/imagemagick.toml Adds aqua:ImageMagick/ImageMagick as the first (highest-priority) backend, enabling Windows support; the commented-out test remains disabled.

Reviews (1): Last reviewed commit: "registry: add imagemagick backend aqua:I..." | Re-trigger Greptile

Comment thread registry/imagemagick.toml
backends = ["conda:imagemagick", "asdf:mise-plugins/mise-imagemagick"]
backends = ["aqua:ImageMagick/ImageMagick", "conda:imagemagick", "asdf:mise-plugins/mise-imagemagick"]
description = "ImageMagick is a free, open-source software suite for creating, editing, converting, and displaying images. It supports 200+ formats and offers powerful command-line tools and APIs for automation, scripting, and integration across platforms"
# test = { cmd = "magick --version", expected = "ImageMagick" }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Commented-out test still disabled

Now that aqua:ImageMagick/ImageMagick is the first backend and provides cross-platform (including Windows) support, it may be a good time to revisit enabling this test. Other aqua-backed registry entries (e.g. act.toml, 1password.toml) have their tests enabled. Consider uncommenting test = { cmd = "magick --version", expected = "ImageMagick" } if the aqua package exposes the magick binary — just confirm the binary name matches what the aqua registry entry ships.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@thernstig

Copy link
Copy Markdown
Contributor

@iki did you see #10118?

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

This PR currently has failing checks. If this continues for 7 days, it will be closed automatically.

This is warning day 1 of 7.

Please update the PR when you have a chance. Feel free to reopen or create a new PR if it is closed and you'd like to continue working on it.

This comment was generated by an automated workflow.

jdx pushed a commit that referenced this pull request Jun 5, 2026
## Summary
- route aqua `format: 7z` archives through the existing archive
extractor
- detect `.7z` assets in the aqua registry mirror when `format` is
omitted
- add Windows e2e coverage using a small local aqua registry and the
existing 7z fixture

## References
- Addresses #10215
(`aqua:ImageMagick/ImageMagick` failed with `unsupported format: 7z`)
- Unblocks #10214, the mise registry PR
adding `aqua:ImageMagick/ImageMagick` for Windows support; that PR
exposed that mise's aqua backend did not support 7z extraction
- Aqua registry reference:
aquaproj/aqua-registry#50281 added
`ImageMagick/ImageMagick` to aqua, where aqua can install the Windows
`.7z` release assets

## Testing
- `cargo fmt --all -- --check`
- `git diff --check`
- Attempted `cargo test -p aqua-registry test_format_detects_7z_asset`,
but local execution was blocked for an extended period by the shared
Cargo build-directory lock from other worktrees; CI should cover this
path
- Windows Pester e2e not run locally on Linux


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Added support for 7z archive format detection to recognize and handle
7z compressed archives
* Implemented Windows-optimized extraction handling for 7z packages
ensuring proper decompression and installation

* **Tests**
* Added end-to-end test suite validating 7z package installation
workflow on Windows
* Test coverage includes local registry configuration, tool
installation, and execution verification

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown

This PR currently has failing checks. If this continues for 7 days, it will be closed automatically.

This is warning day 2 of 7.

Please update the PR when you have a chance. Feel free to reopen or create a new PR if it is closed and you'd like to continue working on it.

This comment was generated by an automated workflow.

@iki

iki commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

Closing as duplicate to #10118

@iki iki closed this Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants