-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postinstall is not run for mise exec #2877
Comments
We can fix this, but since node is in your config there isn't any need to also specify it on the command line. If you didn't include it then it would work. |
I have noticed that it's not always working as it should if I don't specify the tool. Here is what happens: [tools]
node = "23" > mise x -c 'node -v'
mise WARN missing: [email protected]
zsh:1: command not found: node However, if I just type > node
mise [email protected] ✓ installed
Welcome to Node.js v23.1.0.
Type ".help" for more information.
> |
Oh right, I forgot that is by design. It doesn't auto install if no other versions are installed |
For additional context, this is how I was thinking of using this. build:
stage: build
image: some-image-with-mise
script: |
mise x -c 'pnpm i' without |
Ah, makes sense! Do you think it could be added to the warning message? |
I think it's too much noise, the fix should be obvious I would think—running |
Maybe then, would it be possible to have a flag for
(since in the code it anyway checks for it, and there is a This would fit nicely with https://mise.jdx.dev/tips-and-tricks.html#shebang Another thing which surprised me is that (Happy to contribute to fix this issue, btw) |
There is this setting also: https://mise.jdx.dev/configuration/settings.html#not_found_auto_install
|
it only autoinstalls if at least 1 version is already installed
I don't think it's worth adding a flag for. I would just run |
Describe the bug
postinstall
step is not run when usingmise exec
.mise install --force <tool>
again ifmise x <tool>
was already run.To Reproduce
Here is the current behavior
Expected behavior
Using
mise x node -c 'pnpm -v'
I would expect:mise
to installnode
specified in mymise.toml
filepostinstall
pnpm -v
i.e. same behavior as:
mise install mise x -c 'pnpm -v' 9.12.2
mise version
The text was updated successfully, but these errors were encountered: