-
Notifications
You must be signed in to change notification settings - Fork 127
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
[bug]: gh-r installs linux binary on a may when there is no mac binary #295
Comments
I think that knowing whether or not a project has a release asset for a respective system falls squarely on the user. I can't think of a situation where you'd add a program and not know if they support your OS. |
At which point use the |
It opens a huge can of worms in terms of complexity... Such as whats the logic for:
|
I was thinking more of an exclusion pattern: if it contains linux, don't install on Mac/windows and similar for the other OS. At least I would never download anything with linux in the filename if i want to run it on a Mac. So first remove known bad/wrong ones, then pick the best of the rest for download and install. An ice to verify something might also be nice: better an error in install than later when you want to use something... |
FYI: git absorb 0.6.7 has now a linux + mac + windows binary (release workflow similar to ripgrep ones), so the current release cannot be used to run tests against it... 0.6.6 is the last one with an linux only binary. |
@jankatins It can be still tested against using |
I've actually come to think this would be a very nice QoL improvement. Thanks for suggesting it, and I apologize for writing it off so quickly. E.g., exa is unavailable for arm64 but currently selects armv7. Causing you to comment it out or add dumb workarounds. So... were you volunteering to implement it ;). I joke. In all seriousness, what would you expect the behavior to be?
|
My idea would be to write something like this (in pseudo-python code...)
E.g. in the volta example above and on macos, it would at least remove the filenames with windows and linux and probably end up with the two macosx files. And on x86, it would also remove the aarch64 one. On aarch64 it would result in two files and now the code has to choose the better one, which hopefully would result in the aarch64 one, as it is the more specific one. |
Stumbled over it again: #575 (this time for eza, a replacement for the unmaintained exa...) |
Describe the bug
Running the following on a mac will download the wrong (=linux) binary, as there is only a linux build available (git-absorb release page). I would have expected an error upon installation as the binary is clearly a linux one:
(zinit is a recent version after the xtrace changes -> my exclamation mark branch on top of main/bcedc9ff947319a5a979e5d9dfc61e7d9f39cfbd)
Steps to reproduce
zinit as'null' from"gh-r" nocompile nocompletions lbin"git-absorb-* -> git-absorb" for @tummychow/git-absorb
on macgit absorb
and observe that it failsExpected behavior
An error during installation as there is no mac binary
Screenshots and recordings
No response
Operating System & Version
darwin21.3.0 | apple | x86_64 | x86_64 | x86_64 i386
Zsh version
zsh 5.9 (x86_64-apple-darwin21.3.0)
Terminal emulator
xterm-256color (wezterm)
If using WSL on Windows, which version of WSL
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: