-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
mise (was: rtx) shims do not work #23642
Comments
🛎️ @jdx FYI |
Thank you for your report. ubuntu@f84426d0dfb5:~$ ls -lh "$(which node)"
lrwxrwxrwx 1 ubuntu ubuntu 48 Jun 5 20:06 /home/ubuntu/.local/share/mise/shims/node -> /home/ubuntu/.local/share/aquaproj-aqua/bin/mise
ubuntu@f84426d0dfb5:~$ ls -lh /home/ubuntu/.local/share/aquaproj-aqua/bin/mise
lrwxrwxrwx 1 ubuntu ubuntu 13 Jun 5 20:06 /home/ubuntu/.local/share/aquaproj-aqua/bin/mise -> ../aqua-proxy
When I'm not sure why I didn't notice this issue, but I don't come up with the idea to resolve this issue at the moment. I'm not familiar with mise, but as you said |
I think I might suggest in this case using I don't think it's a good idea for manual use to mise via aqua. For programmatic use cases I can imagine this could make sense as a way to acquire mise, but I think a programmatic use case will benefit from a more explicit executions. Note that an aqua-installed mise will be a version-pinned mise, but that won't also pin exact versions of 3rd-party plugins. I'd suggest that aqua and mise bring different approaches to versioning, and that both are fantastic tools, but best at slightly different jobs. Mixing them will get into some advanced/nuanced territory. There are some use cases for this, and each will have tools or languages that the other may have difficulty integrating for one reason or another, but just know that it could get weird For local/user/system-wide use (meaning: for most things other than source-controlled projects), I'd recommend installing mise separately and using its own update systems. |
I tend to agree: installing mise through aqua (or vice-versa) seems to make little sense. So, should mise be removed from aqua-registry? |
There are two options.
The option 1 is simple but a breaking change, so this needs a major update of aqua-registry. Same as
|
I'd recommend a warning, and recommend not removing mise. I'm speaking as an advisory member of mise and a fan of both mise and aqua, but as best I can without any bias and just purely from what I think is a good path forward. There is software that mise can help acquire that will be challenging for aqua. One example is software that has a hard requirement on setup/installation steps after fetching artifacts (may require root, may need to launch daemons, etc). That's not saying everyone should move to mise only, aqua's approach offers more guarantees on how software is versioned and how it's being acquired, and generally will require less community plugins. Anyway I do want to re-state that using a combination of mise and aqua where one is installed using the other is going to be advanced, and best suited to very specific programmatic use cases. Some things will not be supportable (like double-shims) at all for technical limitations beyond what either tool is attempting to solve. If anyone uses both locally (I do!) then I recommend installing them separately and not using one to install the other. For an installation warning, let me suggest this as a starting place:
|
Refer to Issue: aquaproj/aqua-registry#23642
package name
aqua version
Environment
Overview
Chaining shims doesn't work: While it's possible to install tools through mise, their shims "forward" to the aqua shim/proxy, which can not resolve the foreign command names.
How to reproduce
Dockerfile
Expected Behaviour
Output:
v22.2.0
Actual Behaviour
Output:
FATA[0000] aqua failed aqua_version=2.29.0 doc="https://aquaproj.github.io/docs/reference/codes/004" env=linux/amd64 error="command is not found" exe_name=node program=aqua
Important factoids
In the above setting, we (correctly) get:
ref: mise.jdx.dev/getting-started > 2b. Alternative: Add mise shims to PATH
Activating mise works:
ref: mise.jdx.dev/getting-started.html > Activate mise
But: Shims are necessary for integrating with non-CLI tools such as IDEs.
ref: mise.jdx.dev/ide-integration
References
nodejs/node
#1436 -- installing mise in the aqua way does not seem make sense.The text was updated successfully, but these errors were encountered: