shuttle
shuttle copied to clipboard
[Bug]: Intall fails on Arch Linux
What happened?
I tried to run the one-liner to install from the docs curl -sSfL https://www.shuttle.rs/install | bash but the install script doesn't goes through :<
Version
v0.46.0-1
Which operating system(s) are you seeing the problem on?
Linux
Which CPU architectures are you seeing the problem on?
x86_64
Relevant log output
[dev@terminal ~]$ curl -sSfL https://www.shuttle.rs/install | bash
_ _ _ _
___| |__ _ _| |_| |_| | ___
/ __| '_ \| | | | __| __| |/ _ \
\__ \ | | | |_| | |_| |_| | __/
|___/_| |_|\__,_|\__|\__|_|\___|
https://www.shuttle.rs
https://github.com/shuttle-hq/shuttle
Please file an issue if you encounter any problems!
===================================================
Detected Linux!
Checking distro...
lsb_release could not be found. Falling back to /etc/os-release
Arch Linux detected!
[sudo] password for dev:
Installing with pacman
resolving dependencies...
:: There are 2 providers available for cargo:
:: Repository extra
1) rust 2) rustup
Enter a number (default=1): looking for conflicting packages...
Packages (2) rust-1:1.79.0-1 cargo-shuttle-0.46.0-1
Total Download Size: 68.66 MiB
Total Installed Size: 281.11 MiB
:: Proceed with installation? [Y/n] cat <<EOF
Duplicate declaration
- [X] I have searched the issues and there are none like this.
@ez-krk thanks for the report! What do you mean it doesn't go through? Does it complete, but then cargo-shuttle wasn't installed? Did you get an error message?
The reason for this is that pacman, by default, asks for confirmation. You can reproduce it using this Dockerfile (note that the archlinux base image doesn't support arm64, at least as far as I can tell):
FROM archlinux:latest
RUN pacman -Syu --noconfirm curl sudo
RUN curl -sSfL https://www.shuttle.rs/install | bash
ENTRYPOINT ["/bin", "bash"]
I uploaded a PR that should fix this (#1861 )