Skip to content
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

webi installer picks the wrong release #359

Closed
jacobo-diaz opened this issue Mar 3, 2022 · 3 comments · Fixed by #425
Closed

webi installer picks the wrong release #359

jacobo-diaz opened this issue Mar 3, 2022 · 3 comments · Fixed by #425

Comments

@jacobo-diaz
Copy link

When installing on Linux, web installer detects the right arch (Linux/x86_64), but downloads the wrong release (macOS):

[root@xxx]~# curl -sS https://webinstall.dev/zoxide | bash

Thanks for using webi to install 'zoxide@stable' on 'Linux/x86_64'.
Have a problem? Experience a bug? Please let us know:
        https://github.com/webinstall/webi-installers/issues

Lovin' it? Say thanks with a Star on GitHub:
        https://github.com/webinstall/webi-installers

Downloading zoxide from
https://github.com/ajeetdsouza/zoxide/releases/download/v0.8.0/zoxide-v0.8.0-x86_64-apple-darwin.tar.gz

Saved as /root/Downloads/webi/zoxide/0.8.0/zoxide-v0.8.0-x86_64-apple-darwin.tar.gz
Extracting /root/Downloads/webi/zoxide/0.8.0/zoxide-v0.8.0-x86_64-apple-darwin.tar.gz
Installing to /root/.local/opt/zoxide-v0.8.0/bin/zoxide
[email protected]: line 247: /root/.local/bin/pathman: cannot execute binary file: Exec format error
zoxide was installed successfully. Next, you'll need to set it up on your shell:

- For bash, add this line to ~/.bashrc:
    eval "$(zoxide init bash)"

- For fish, add this line to ~/.config/fish/config.fish:
    zoxide init fish | source

- For zsh, add this line to ~/.zshrc:
    eval "$(zoxide init zsh)"

- For any other shell, see the instructions at https://github.com/ajeetdsouza/zoxide.
@candrewlee14
Copy link

Try webman.

It's an easy way to install zoxide and tools like it. Just run webman add zoxide :)

I built webman because of pain points with webi. It functions in a similar way but is a lot easier to work with. Check it out and let me know what you think.

@ajeetdsouza
Copy link
Owner

Hey, zoxide now ships its own installer once again. Sorry this took so long!

@coolaj86
Copy link

coolaj86 commented Nov 2, 2023

I believe this was related to an issue with os detection using uname -a, which included the system hostname, which would sometimes match OS strings when users would give their computers names like Winkle or Darwinian or MacOstrich, etc.

Webi has since switched to using uname -srm which still works on both macOS and Linux, but sends only the necessary information (which is all around better, just something we didn't know about back in the early days).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants