Skip to content

Fix mise wrapper binary resolution - #8798

Closed
Zeus-Deus wants to merge 2 commits into
omacom:quattrofrom
Zeus-Deus:fix/mise-wrapper-package-resolution
Closed

Zeus-Deus wants to merge 2 commits into
omacom:quattrofrom
Zeus-Deus:fix/mise-wrapper-package-resolution

Conversation

@Zeus-Deus

Copy link
Copy Markdown
Contributor

Problem

Generated mise wrappers can resolve themselves or a same-named binary from another package.

Fix

Resolve executables only from the requested package’s mise bin-paths, then launch through mise x. This keeps lazy updates and runtime setup unchanged, with regression and migration coverage.

Builds on #8692.

Copilot AI balanced review requested due to automatic review settings August 28, 2026 18:12

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@imadtg

imadtg commented Aug 28, 2026

Copy link
Copy Markdown

This PR does add handling of ".", ".." and absolute paths being passed to omarchy-mise-install better than it's base PR #8692, but i see you have opted to change from the simple mise which "$bin" --tool="$package" into a more elaborate version, Why is that? do you have scenarios where yours works and the base doesn't?

@imadtg imadtg left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

after looking into mise’s behavior, I understand that mise which --tool is not a strict package-only lookup. The bin-paths approach explicitly keeps the executable inside the requested package, so this is meaningful hardening rather than an unnecessary rewrite.

Could you also restore Fixes #7360 and Fixes #7234 to this PR’s description?

@imadtg

imadtg commented Sep 12, 2026 •

Copy link
Copy Markdown

This looks to be having merge conflicts and abandoned.. so i pulled these improvements back in #8692

@bjarneo

bjarneo commented Sep 21, 2026

Copy link
Copy Markdown
Member

Automated duplication check: this pull request looks similar to #8692, which covers the same mise wrapper binary resolution. I keep that one open and close this one to consolidate review.

If you feel this is the wrong decision, please open the PR again with a note on the difference.

@bjarneo bjarneo closed this Sep 21, 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.

4 participants