mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Building 1.14.2 on ARM fails to get rust nightly components #683
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mqus on GitHub (Apr 12, 2020).
Subject of the issue
I just tried to build the latest release on a raspberry pi (baremetal) and got the following error while cargo/rustup was updating the toolchain:
After looking at https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu.html, I decided to use
nightly-2020-04-10and it build without any issues. This issue is basically the same as #622 .I think this will be solved eventually by using another nightly build, the only open question is: Does it make sense to make a new release?
Your environment
Steps to reproduce
On an ARM machine (e.g. Raspberry Pi with ArchlinuxARM):
@dani-garcia commented on GitHub (Apr 12, 2020):
Well clippy is broken in a big percentage of the nightly builds, but it's not needed to compile the code so I'd recommend just using rustups minimal profile (
rustup set profile minimalbefore installing).I don't think it's enough to make a new release to fix it, but I'll have it in mind before making any new rust updates in the future.
@mqus commented on GitHub (Apr 12, 2020):
I can set the rustup profile for me perfectly (and probably already did on my main machine,just forgot it :D) but I can't simply set the profile in the archlinux build script and change the setup of unsuspecting users... do you know a better solution than reading the old value, setting it and then reverting to the old one (which is what I would probably do)?
@mqus commented on GitHub (Apr 12, 2020):
Btw, I also don't think a new release is necessary, one can trivially work around this.
@dani-garcia commented on GitHub (Apr 12, 2020):
You can do something like
rustup override set --path <bitwardenrs_path> nightly-2020-04-10or I think settingRUSTUP_TOOLCHAINenv variable also works.Edit: Also
cargo +nightly-2020-04-10 buildshould work as well.@mqus commented on GitHub (Apr 13, 2020):
Thank you!, i'll try this in the future. For now, I'm using the profile setting and resetting, which also limits the amount if space the new installed components take up.
@mqus commented on GitHub (Jun 3, 2020):
As this is not a problem in the new version I'll close this issue now. Of course it could occur in the future again but I think there is nothing we can do to fix this here.