Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory when accessing non existent ids directory #598

Closed
nick-mobilecoin opened this issue Apr 17, 2023 · 3 comments · Fixed by #611
Closed

No such file or directory when accessing non existent ids directory #598

nick-mobilecoin opened this issue Apr 17, 2023 · 3 comments · Fixed by #611

Comments

@nick-mobilecoin
Copy link

On a new install of 0.24.0, if one runs cargo crev trust ... it will try to access the ids directory before it is created and fail with an IO error.
A new install of 0.23.0 works fine under the same constraints

The error chain:

If you want to report an issue, please go through the following checklist:

  • If a command is failing try running it with RUST_BACKTRACE=1
    No new information provided

  • Paste the exact command and error and/or outputs (along with the backtrace)

    cargo crev trust --level high --no-commit https://github.com/mobilecoinfoundation/crev-proofs
    I/O: No such file or directory (os error 2)
    
    Caused by:
        No such file or directory (os error 2)
  • Please let us know:

    • Which version are you using (eg. cargo crev --version)
      0.24.0
    • How did you install crev (git?, cargo?, your distribution?)
      • Installing by downloading the binary
      • Building locally with cargo run ... or cargo build && ./target ...
    • What OS/platform are you running on
      • Ubuntu 22.04 (github actions)
      • Mac OS (m2)
nick-mobilecoin added a commit to mobilecoinfoundation/cookiecutters that referenced this issue Apr 17, 2023
crev version 0.24 will fail to run on a fresh install. In order for the
github actions to work correctly the crev version has been pinned back
to 0.23 until crev-dev/cargo-crev#598 gets
resolved.
nick-mobilecoin added a commit to mobilecoinfoundation/cookiecutters that referenced this issue Apr 18, 2023
crev version 0.24 will fail to run on a fresh install. In order for the
github actions to work correctly the crev version has been pinned back
to 0.23 until crev-dev/cargo-crev#598 gets
resolved.
@seanpianka
Copy link

I am also having this issue with the exact same behavior chain.

@carlaKC
Copy link

carlaKC commented Apr 26, 2023

Also ran into this issue going through the getting started guide:

  • cargo install cargo-crev on MasOs(m1)
  • cargo crev -version -> 0.24.0
  • Any cargo crev command fails with I/O: No such file or directory (os error 2) error

Reverting to 0.23.3 fixes the issue for me.

@jayvdb
Copy link

jayvdb commented Jun 14, 2023

Building 0.23.0 failed for me.

$ rustup run stable cargo install cargo-crev --version 0.23.0
...
   Compiling cargo-crev v0.23.0
error[E0063]: missing fields `distrust_distance` and `none_trust_distance` in initializer of `crev_lib::TrustDistanceParams`
   --> /home/jayvdb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-crev-0.23.0/src/opts.rs:168:9
    |
168 |         crev_lib::TrustDistanceParams {
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `distrust_distance` and `none_trust_distance`

For more information about this error, try `rustc --explain E0063`.
error: could not compile `cargo-crev` (bin "cargo-crev") due to previous error
error: failed to compile `cargo-crev v0.23.0`, intermediate artifacts can be found at `/tmp/cargo-installAjpJc4`

v 0.23.5 builds for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants