Crash on aqua:gitlab.com/gitlab-org/cli install #3547
Replies: 13 comments
-
perhaps the docs need to be updated but I think you need to specify |
Beta Was this translation helpful? Give feedback.
-
Hmm, not sure how to specify https there.
The aqua registry does have explicit gitlab.com/gitlab-org/cli path for this, I haven't checked if there are any others with the domain in it:
Anyway I thought the crash was the more interesting thing here rather than failure to install (be it due to using a wrong syntax or not). |
Beta Was this translation helpful? Give feedback.
-
oh sorry, I forgot, everything in aqua is hardcoded to github. I hadn't seen anything in there that wasn't using github. In fact it seems this is something handled as a special case because the registry is specified as http: https://github.com/aquaproj/aqua-registry/blob/main/pkgs/gitlab.com/gitlab-org/cli/registry.yaml#L3-L5 I don't think we can support this one unless we also add in similar exceptions |
Beta Was this translation helpful? Give feedback.
-
I think I'm inclined to wait on this one until aqua more formally defines gitlab, other I'd basically need to handle this one package uniquely in the repo in many ways |
Beta Was this translation helpful? Give feedback.
-
That's all fine with me, thanks for considering. Although perhaps the crash could be fixed meanwhile, even if installing the thing would not work.
Just thought I'd note that at least 1password is specified as http in aqua too, but it's not a GitHub thing, and installing it via mise works fine (albeit without automatic remote version info).
|
Beta Was this translation helpful? Give feedback.
-
http is not a problem, using gitlab is since this appears to be the only tool in aqua not using github |
Beta Was this translation helpful? Give feedback.
-
The mentioned |
Beta Was this translation helpful? Give feedback.
-
we don't use either one, and it doesn't appear mise can get the versions for either one |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what "we don't use" means. Anyway, https://mise.jdx.dev/registry.html even explicitly says
So, to highlight the difference and that it does not seem to be about GitHubness:
On the other hand:
|
Beta Was this translation helpful? Give feedback.
-
Tools only "work" in the strictest sense in mise if we can't list the versions. So much of the functionality doesn't work if we can't list versions that I don't really consider something "working" if we can't list them. That's why 1password doesn't use aqua by default. I take your point that something other than listing versions is making this tool not work, but unless we were able to list the versions I wouldn't consider putting it into the registry anyways. |
Beta Was this translation helpful? Give feedback.
-
I agree with version listing availability being a good "gatekeeper" for what gets included in mise's registry. But I hope the general ability to just use something from aqua (or ubi for that matter) no matter if they're in mise's registry or not does not go away or become a coincidence. In some use cases, version listing is entirely moot, and tools are always installed or exec'd by explicit versions, and mise's ability to transparently download them if needed on the fly is very useful. Anyway, we digress -- this bug report is not about version support or whether a tool is supported for one reason or the other, but that in my (not so humble :)) opinion, crashing on something like the reproducer here is not appropriate. Gracefully exiting with a non-zero exit code and a descriptive message would be fine. |
Beta Was this translation helpful? Give feedback.
-
from a practical standpoint, this is the only tool in aqua that uses gitlab. It appears from the aqua registry given the TODO there are plans to more formally support gitlab. I think at that point, once aqua has a |
Beta Was this translation helpful? Give feedback.
-
I don't have an example but I believe there are |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
mise crashes on installing aqua:gitlab.com/gitlab-org/cli.
To Reproduce
mise use -g aqua:gitlab.com/gitlab-org/cli
Expected behavior
No crash,
glab
installed.mise doctor
outputAdditional context
Beta Was this translation helpful? Give feedback.
All reactions