Closed mbuesch closed 11 months ago
Please build & install v0.11.7 using --locked
from git:
cargo install --profile release --locked --git https://github.com/geiger-rs/cargo-geiger cargo-geiger
Or use one of the pre-built binaries https://github.com/geiger-rs/cargo-geiger/releases/tag/cargo-geiger%40v0.11.7
I cannot replicate this problem by using--locked
and / or 0.11.7
install
$ cargo install --profile release --locked --git https://github.com/geiger-rs/cargo-geiger cargo-geiger
Updating git repository `https://github.com/geiger-rs/cargo-geiger`
runtime
$ cargo geiger --version
cargo-geiger 0.11.7
$ cargo new geigertest
Created binary (application) `geigertest` package
$ cd geigertest
$ cargo add tempfile
Updating crates.io index
Adding tempfile v3.8.1 to dependencies.
Features:
- nightly
Updating crates.io index
$ cargo geiger
Removed 0 files
Compiling rustix v0.38.28
Checking bitflags v2.4.1
...
Finished dev [unoptimized + debuginfo] target(s) in 1.15s
Scanning done
Metric output format: x/y
x = unsafe code used by the build
y = total unsafe code found in the crate
Symbols:
π = No `unsafe` usage found, declares #![forbid(unsafe_code)]
β = No `unsafe` usage found, missing #![forbid(unsafe_code)]
β’οΈ = `unsafe` usage found
Functions Expressions Impls Traits Methods Dependency
0/0 0/0 0/0 0/0 0/0 β geigertest 0.1.0
0/0 0/46 0/0 0/0 0/0 β βββ tempfile 3.8.1
0/0 0/0 0/0 0/0 0/0 β βββ cfg-if 1.0.0
0/0 0/0 0/0 0/0 0/0 π βββ fastrand 2.0.1
38/381 696/7079 5/8 1/1 15/35 β’οΈ βββ rustix 0.38.28
0/0 0/0 0/0 0/0 0/0 β βββ bitflags 2.4.1
0/0 0/103 0/0 0/0 0/0 β βββ errno 0.3.8
0/90 0/582 0/2 0/0 0/63 β β βββ libc 0.2.151
0/90 0/582 0/2 0/0 0/63 β βββ libc 0.2.151
10/10 188/4427 0/0 0/0 2/236 β’οΈ βββ linux-raw-sys 0.4.12
48/481 884/12237 5/10 1/1 17/334
$
I tried several cargo runtimes and didn't replicate in any platforms I have available.
This problem occured in installs not using --locked
relating to some unlocked dependency used in buildtime incompatible with newer cargo runtime - thus build logs are needed to see what is going on.
I cannot replicate this problem by using --locked and / or 0.11.7
Ok, well I installed the latest version from crates.io. I was not aware that the version from crates.io is outdated.
The current crates.io version is fine but need to use --locked
as there was some transient build dep change that broke the runtime in newer cargo runtimes - as we use cargo both as a library as well as at binary runtime which complicates.
I just want to test in the newest version from git which has not been published yet to crates.io but about to.
I just want to test in the newest version from git which has not been published yet
Yes, with git it doesn't crash.
Thanks for confirming - Closing as resolved - Will publish to crates.io the documentation fix to use --locked
soon.
cargo-geiger crashes, if I add the 'tempfile' dependency to a project:
How to reproduce?
Versions