fix(mvdan/sh): add Windows .exe override for shfmt#52150
fix(mvdan/sh): add Windows .exe override for shfmt#52150zeitlinger wants to merge 2 commits intoaquaproj:mainfrom
Conversation
Signed-off-by: Gregor Zeitlinger <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughAdded a Windows-specific override for the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I don't think this fix is necessary.
Generally speaking, If you want to send a pull request to fix a bug, you should describe the bug.
At least, CI succeeded on Windows. |
Blocked by aquaproj/aqua-registry#52150 ## Summary - aquaproj/aqua-registry#51964 (Windows support for shfmt) merged and released - Switch `check_shfmt()` from `github:mvdan/sh` to bare `shfmt` key (mise resolves via `aqua:mvdan/sh`) - Drop entire `versioned_bin_fmt` feature — shfmt was the only user - Remove `mise_tools` param from `runner::run`/`prepare`/`build_invocations` (no longer needed) - Add `("github:mvdan/sh", "shfmt")` to `OBSOLETE_KEYS` for automatic migration hint - Update `mise.toml`, test fixtures, and `renovate-tracked-deps.json` ## Test plan - [ ] CI passes (Linux, macOS, Windows) - [ ] `flint update` migrates `github:mvdan/sh` → `shfmt` in consumer repos
Problem
shfmtWindows release assets have.exeextension (shfmt_v3.13.1_windows_amd64.exe) but the registry asset templateshfmt_{{.Version}}_{{.OS}}_{{.Arch}}producesshfmt_v3.13.1_windows_amd64without the extension. Aqua fails to download the binary on Windows.Fix
Add a package-level Windows override that appends
.exeto the asset name:This applies to all version_overrides since they all share the same asset naming pattern.
Verification
Release assets confirm
.exeis required on Windows:shfmt_v3.13.1_windows_386.exeshfmt_v3.13.1_windows_amd64.exeSummary by CodeRabbit