awslabs / coldsnap

A command line interface for Amazon EBS snapshots
Apache License 2.0
194 stars 24 forks source link

Cargo install failure #90

Closed coreylane closed 3 years ago

coreylane commented 3 years ago

Hello team, I'm suddenly having an issue compiling coldsnap w/ cargo

root@ip-172-31-13-149:~# cargo install --locked coldsnap
    Updating crates.io index
  Downloaded coldsnap v0.3.2
  Downloaded 1 crate (28.9 KB) in 0.21s
  Installing coldsnap v0.3.2
  Downloaded chrono v0.4.19
  Downloaded ppv-lite86 v0.2.10
  Downloaded rand v0.8.4
  Downloaded digest v0.9.0
  Downloaded cpufeatures v0.1.5
  Downloaded bitflags v1.2.1
  Downloaded autocfg v1.0.1
  Downloaded bytes v1.0.1
  Downloaded num-traits v0.2.14
  Downloaded md-5 v0.9.1
  Downloaded rusoto_credential v0.47.0
  Downloaded ryu v1.0.5
  Downloaded futures-task v0.3.16
  Downloaded futures-macro v0.3.16
  Downloaded hex v0.4.3
  Downloaded httpdate v1.0.1
  Downloaded rand_chacha v0.3.1
  Downloaded proc-macro-hack v0.5.19
  Downloaded rand_core v0.6.3
  Downloaded native-tls v0.2.7
  Downloaded hashbrown v0.11.2
  Downloaded mio v0.7.13
  Downloaded openssl-probe v0.1.4
  Downloaded memchr v2.4.0
  Downloaded terminal_size v0.1.17
  Downloaded serde_derive v1.0.126
  Downloaded tower-service v0.3.1
  Downloaded typenum v1.13.0
  Downloaded regex v1.5.4
  Downloaded libc v0.2.98
  Downloaded tokio v1.8.3
  Downloaded tokio-macros v1.3.0
  Downloaded xml-rs v0.8.4
  Downloaded rusoto_ec2 v0.47.0
  Downloaded quote v1.0.9
  Downloaded matches v0.1.8
  Downloaded serde v1.0.126
  Downloaded proc-macro-nested v0.1.7
  Downloaded pkg-config v0.3.19
  Downloaded serde_json v1.0.66
  Downloaded hyper-tls v0.5.0
  Downloaded rusoto_core v0.47.0
  Downloaded snafu-derive v0.6.10
  Downloaded slab v0.4.3
  Downloaded proc-macro2 v1.0.28
  Downloaded openssl-sys v0.9.65
  Downloaded tempfile v3.2.0
  Downloaded futures v0.3.16
  Downloaded shlex v1.0.0
  Downloaded pin-utils v0.1.0
  Downloaded zeroize v1.4.1
error: failed to compile `coldsnap v0.3.2`, intermediate artifacts can be found at `/tmp/cargo-installZK2Wpv`

Caused by:
  failed to parse manifest at `/root/.cargo/registry/src/github.com-1ecc6299db9ec823/zeroize-1.4.1/Cargo.toml`

Caused by:
  feature `resolver` is required

  consider adding `cargo-features = ["resolver"]` to the manifest
tjkirch commented 3 years ago

Hey @coreylane, thanks for the report!

I'm not able to reproduce this; can you give us a bit more detail about your environment? The most important thing is probably Rust/cargo version. Are you on the latest 1.54 release? If so, do you have anything special in ~/.cargo/config that might be affecting the features cargo is using?

coreylane commented 3 years ago

Thanks! Using the latest rust release resolved this