cargo-clippy | cargo clippy | DevOps library
kandi X-RAY | cargo-clippy Summary
kandi X-RAY | cargo-clippy Summary
cargo clippy
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cargo-clippy
cargo-clippy Key Features
cargo-clippy Examples and Code Snippets
Community Discussions
Trending Discussions on cargo-clippy
QUESTION
I'm trying to get Rust running in Docker to use it for 32-bit musl builds. Ever since I updated it to use the new URL to pull rustup, I'm hitting this issue when running the container interactively using bash:
...ANSWER
Answered 2019-Feb-19 at 10:29So, here is the summary of our investigations.
The base image used for build is i386/ubuntu
with 32-bit environment inside, however, this image does nothing to appropriately mask the results of uname(2)
calls (by having something like setarch linux32
as entrypoint), so, when running on 64-bit system (your case), any process inside the build container calling uname(2)
or uname(1)
sees x86_64
instead of i686
. This is the root of the problem.
When you install cargo
, you download and run the installation script, which detects the platform it runs on and downloads the appropriate version of rustup-init
. The platform detection in this script recognizes correctly that it runs in 32-bit environment but on 64-bit kernel, so the script downloads 32-bit version of rustup-init
. However, rustup-init
decides that it runs on x86_64
(probably it sees x86_64
returned by uname(2)
, but does not perform the check for "32-bit environment on 64-bit kernel" case, like the installer script does). You can see it during the installation without -y
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cargo-clippy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page