Repository navigation
fix(tool-stub): keep env_with_path instead of rebuilding PATH - #12322
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughTool-stub execution now uses ChangesTool-stub PATH preservation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change preserves project PATH entries while avoiding unintended outer task install directories and adding only backend dependency bins; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
Greptile SummaryThe PR preserves the toolset-generated environment during non-cached tool-stub execution while prepending required backend dependency bins.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the inherited-tool shadowing issue is addressed by retaining the filtered toolset environment, and the executable-mode issue is fixed. Important Files Changed
Reviews (5): Last reviewed commit: "fix(tool-stub): keep env_with_path inste..." | Re-trigger Greptile |
8834ed8 to
bc0ba12
Compare
bc0ba12 to
6df8738
Compare
|
mise/e2e-win/exec_inactive_tool.Tests.ps1 Lines 48 to 51 in 23f8607 the output of usage --version is changed in recent releases.
|
6df8738 to
a8a3007
Compare
Non-cached tool-stub exec rebuilt PATH from pristine env, which dropped project _.path dirs from __MISE_DIFF and broke nested LookPath of sibling stubs. Rebuilding from the caller PATH could also let an outer task's install dirs shadow the stub-selected version. Keep toolset.env_with_path (already includes _.path and filters outer install dirs) and only prepend backend dependency bins (#7777).
a8a3007 to
f46e2a8
Compare
### 🚀 Features - **(bootstrap)** add package plugin uninstall support by @jdx in [#12332](#12332) ### 🐛 Bug Fixes - **(brew-cask)** recognize Homebrew-owned casks by @donbeave in [#12346](#12346) - **(cli)** report a cd target it cannot enter instead of panicking by @JamBalaya56562 in [#12314](#12314) - **(config)** skip disabled idiomatic tracked configs by @xqm32 in [#12194](#12194) - **(config)** keep comments when saving from mise edit by @Marukome0743 in [#12319](#12319) - **(config)** strip a byte-order mark before reading a version file by @JamBalaya56562 in [#12325](#12325) - **(doctor)** report installs that provide no executables by @Marukome0743 in [#12321](#12321) - **(env)** say why an age SSH identity could not be used by @Marukome0743 in [#12339](#12339) - **(env)** name the key and file behind an unexpanded $VAR by @Marukome0743 in [#12316](#12316) - **(go)** don't hand go install a GOROOT from another Go by @Marukome0743 in [#12342](#12342) - **(task)** treat a SIGINT-killed child as an interruption by @Marukome0743 in [#12323](#12323) - **(task)** preserve string type for usage value flags by @jdx in [#12355](#12355) - **(tasks)** tell Windows users why a task file was skipped by @JamBalaya56562 in [#12324](#12324) - **(tool-stub)** keep env_with_path instead of rebuilding PATH by @tmkx in [#12322](#12322) - **(watch)** restore the controlling terminal from a drop guard by @Marukome0743 in [#12328](#12328) ### 🚜 Refactor - **(cli)** keep one copy of the task-flag escape rule by @JamBalaya56562 in [#12343](#12343) ### 📚 Documentation - **(tasks)** point extensionless pwsh tasks at MISE_TASK_DIR by @JamBalaya56562 in [#12313](#12313) ### 📦️ Dependency Updates - update rust crate aube-registry to v2.1.0 by @renovate[bot] in [#12348](#12348) - bump aube to 2.1.0 by @jdx in [#12351](#12351) - bump usage to 6.2.0 by @jdx in [#12354](#12354) ### 📦 Registry - fix usage version test by @jdx in [#12349](#12349) - install oc from a channel directory by @Marukome0743 in [#12326](#12326) ### Chore - **(ci)** use github runners for fork prs by @jdx in [#12345](#12345) - **(ci)** prevent cache warmer starvation by @jdx in [#12350](#12350) ### New Contributors - @tmkx made their first contribution in [#12322](#12322)
Non-cached tool-stub exec rebuilt PATH from pristine env, which dropped project _.path dirs from __MISE_DIFF and broke nested LookPath of sibling stubs. Rebuilding from the caller PATH could also let an outer task's install dirs shadow the stub-selected version.
Keep toolset.env_with_path (already includes _.path and filters outer install dirs) and only prepend backend dependency bins (#7777).
Summary by CodeRabbit
Summary by CodeRabbit
PATHentries are preserved, including paths configured through environment settings.