pijul_org / pijul

#214 "cargo install pijul" failed

Opened by hmikisato, on October 17, 2017
Closed
hmikisato commented on October 17, 2017

Reproduce Environment

macOS El Capitan

$ rustup show Default host: x86_64-apple-darwin installed toolchains

stable-x86_64-apple-darwin nightly-x86_64-apple-darwin active toolchain

Windows 10 Home 64bit

Default host: x86_64-pc-windows-msvc

installed toolchains

stable-x86_64-pc-windows-msvc nightly-x86_64-pc-windows-msvc

active toolchain

nightly-x86_64-pc-windows-msvc (default) rustc 1.22.0-nightly (4e9527cf6 2017-10-16)

Steps to Reproduce

On macOS:

$ rustup run stable cargo install pijul --verbose
(......)
   Compiling pijul v0.8.2
     Running `rustc --crate-name pijul .cargo/registry/src/github.com-1ecc6299db9ec823/pijul-0.8.2/src/main.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=ffdd2e559ef60a3c -C extra-filename=-ffdd2e559ef60a3c --out-dir /var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps -L dependency=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps --extern regex=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libregex-b041937f11e92580.rlib --extern hyper=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libhyper-a73eed092aa76c0d.rlib --extern clap=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libclap-0681f6a458aceac4.rlib --extern bs58=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libbs58-cdc6c874c4aa6d14.rlib --extern hyper_rustls=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libhyper_rustls-d4f50c7337f8714a.rlib --extern error_chain=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/liberror_chain-e825a77033d0f52e.rlib --extern env_logger=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libenv_logger-2fc1306e8de4ba73.rlib --extern toml=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libtoml-67194e23836ddc62.rlib --extern base64=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libbase64-2c72f8d7be2055bf.rlib --extern ring=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libring-cdf3f037ca56bbc7.rlib --extern log=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/liblog-547ba05951f6e38a.rlib --extern chrono=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libchrono-dc8b92d61f26a00c.rlib --extern tar=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libtar-ba4699e3048c3f1e.rlib --extern rand=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/librand-dd01300404808758.rlib --extern flate2=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libflate2-c3fa08e1c87d7c79.rlib --extern serde=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libserde-e4a856c47f684693.rlib --extern futures=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libfutures-653322669365f625.rlib --extern libpijul=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/liblibpijul-a0fdef0b505a27bd.rlib --extern pager=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libpager-3401102860f7d7a7.rlib --extern tokio_core=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libtokio_core-5367d0aa83759d38.rlib --extern getch=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libgetch-a6024270f3656143.rlib --extern bincode=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libbincode-14ef838e4a23ba03.rlib --extern progrs=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libprogrs-b8eeb0d2da3b2b46.rlib --extern liner=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libliner-5cae7ad05984dd99.rlib --extern username=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libusername-ca22b47a2fefbf6a.rlib --extern isatty=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libisatty-7536a3376bc9eec1.rlib --extern shell_escape=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libshell_escape-da5891ba52e34938.rlib --extern thrussh_keys=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libthrussh_keys-7ec92ffcd44b3c5e.rlib --extern term=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libterm-a91f44fa77abf22e.rlib --extern serde_derive=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libserde_derive-f3b93ade38c8e84a.dylib --extern tempdir=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libtempdir-f3e617c3754d1447.rlib --extern thrussh=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libthrussh-7b12ec65ccb18d2f.rlib --extern hex=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libhex-0330fd0eda4c293e.rlib --extern ignore=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libignore-7922ff8f309f883d.rlib --extern termion=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libtermion-823647e21f15271a.rlib --cap-lints allow -L native=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/build/miniz-sys-e788a23511f1bd87/out -L native=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/build/ring-5899812d303121c3/out -L native=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/build/rust-crypto-20e8bde3f04a89ae/out`
error[E0599]: no method named `unwrap` found for type `usize` in the current scope
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/pijul-0.8.2/src/commands/keys.rs:206:98
    |
206 |         session.data(channel, None, &bincode::serialize(&signature, bincode::Infinite).unwrap()).unwrap();
    |                                                                                                  ^^^^^^
error: aborting due to previous error
error: failed to compile `pijul v0.8.2`, intermediate artifacts can be found at `/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW`
Caused by:
  Could not compile `pijul`.
Caused by:
  process didn't exit successfully: `rustc --crate-name pijul .cargo/registry/src/github.com-1ecc6299db9ec823/pijul-0.8.2/src/main.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=ffdd2e559ef60a3c -C extra-filename=-ffdd2e559ef60a3c --out-dir /var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps -L dependency=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps --extern regex=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libregex-b041937f11e92580.rlib --extern hyper=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libhyper-a73eed092aa76c0d.rlib --extern clap=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libclap-0681f6a458aceac4.rlib --extern bs58=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libbs58-cdc6c874c4aa6d14.rlib --extern hyper_rustls=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libhyper_rustls-d4f50c7337f8714a.rlib --extern error_chain=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/liberror_chain-e825a77033d0f52e.rlib --extern env_logger=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libenv_logger-2fc1306e8de4ba73.rlib --extern toml=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libtoml-67194e23836ddc62.rlib --extern base64=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libbase64-2c72f8d7be2055bf.rlib --extern ring=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libring-cdf3f037ca56bbc7.rlib --extern log=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/liblog-547ba05951f6e38a.rlib --extern chrono=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libchrono-dc8b92d61f26a00c.rlib --extern tar=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libtar-ba4699e3048c3f1e.rlib --extern rand=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/librand-dd01300404808758.rlib --extern flate2=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libflate2-c3fa08e1c87d7c79.rlib --extern serde=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libserde-e4a856c47f684693.rlib --extern futures=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libfutures-653322669365f625.rlib --extern libpijul=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/liblibpijul-a0fdef0b505a27bd.rlib --extern pager=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libpager-3401102860f7d7a7.rlib --extern tokio_core=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libtokio_core-5367d0aa83759d38.rlib --extern getch=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libgetch-a6024270f3656143.rlib --extern bincode=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libbincode-14ef838e4a23ba03.rlib --extern progrs=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libprogrs-b8eeb0d2da3b2b46.rlib --extern liner=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libliner-5cae7ad05984dd99.rlib --extern username=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libusername-ca22b47a2fefbf6a.rlib --extern isatty=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libisatty-7536a3376bc9eec1.rlib --extern shell_escape=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libshell_escape-da5891ba52e34938.rlib --extern thrussh_keys=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libthrussh_keys-7ec92ffcd44b3c5e.rlib --extern term=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libterm-a91f44fa77abf22e.rlib --extern serde_derive=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libserde_derive-f3b93ade38c8e84a.dylib --extern tempdir=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libtempdir-f3e617c3754d1447.rlib --extern thrussh=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libthrussh-7b12ec65ccb18d2f.rlib --extern hex=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libhex-0330fd0eda4c293e.rlib --extern ignore=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libignore-7922ff8f309f883d.rlib --extern termion=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/deps/libtermion-823647e21f15271a.rlib --cap-lints allow -L native=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/build/miniz-sys-e788a23511f1bd87/out -L native=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/build/ring-5899812d303121c3/out -L native=/var/folders/90/fcxcfq0s1t330b94_9dj47j541slnj/T/cargo-install.YyqSweMEbDMW/release/build/rust-crypto-20e8bde3f04a89ae/out` (exit code: 101)

The same compile error on Windows 10 Home 64bit.

I think that the second unwrap() should be removed?

pmeunier commented on October 17, 2017

I think that the second unwrap() should be removed?

It is actually removed in a more recent Thrussh, but Pijul 0.8.2 doesn't have the correct Thrussh. Let me release Pijul 0.8.3 with the correct information.

hmikisato commented on October 17, 2017

Thank you for your answer and I'm sorry for creating a discussion about resolved matter.

pmeunier commented on October 17, 2017

No problem! Thanks a lot for reporting the issue!