Commit 65a1769
authored
chore(repo): use mise exec when running commands in cloned repos (#35391)
## Current Behavior
`update-repos` spawns child processes to run `pnpm install`, `nx
migrate`, etc. inside each cloned target repo. The child inherits the
launching shell's `PATH`, which mise activation populated with hardcoded
version-specific install paths (e.g. `/.../installs/node/24.11.0/bin`).
Mise activation is a shell hook on `cd` — it does not re-fire when a
child process changes its own `cwd`. As a result, every cloned repo's
commands run against the outer shell's pinned tool versions rather than
the versions in the cloned repo's own `mise.toml`.
## Expected Behavior
Each cloned repo's commands honor the tool versions pinned in that
repo's `mise.toml`.
`execWithOutput` now prefixes every spawned command with `mise exec --`
(except commands that already start with `mise`, so `mise trust` / `mise
install` aren't wrapped in themselves). `mise exec` re-reads `mise.toml`
from the `cwd` at invocation time and activates the correct tool
versions for that repo.
## Related Issue(s)
Fixes #1 parent 3d9bc7a commit 65a1769
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | | - | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
0 commit comments