mise install --system: go-backend tools can't find go binary installed in the same invocation #9526
Unanswered
fedor-rubalskiy
asked this question in
Troubleshooting and bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When
mise install --systeminstalls bothgoand ago:backend tool (e.g.go:github.com/protocolbuffers/txtpbfmt/cmd/txtpbfmt) in the same invocation, the go-backend tool fails withNo such file or directory (os error 2). Thegobinary is successfully installed, but the go-backend subprocess can't find it via PATH.This does not happen with regular (non-system)
mise install, which correctly makes thegobinary available to go-backend tools during the same invocation.The failure is deterministic when
gois not already installed in the system data dir. With--jobs 1, mise correctly sequences go before the go-backend tool, but the binary still isn't resolvable:Reproduction
mise.toml:Root cause
Verbose output shows mise knows where go is but the go-backend subprocess uses bare
go:In regular mode, mise adds the go install path to the subprocess PATH. In
--systemmode, it doesn't — the go-backend subprocess inherits the outer PATH which doesn't include the system install dir.Workaround
Pre-install go in a separate invocation:
Environment
Beta Was this translation helpful? Give feedback.
All reactions