Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Unresolved name cargo::ops::load_lockfile #14

Open
thejpster opened this issue Dec 7, 2016 · 3 comments
Open

Unresolved name cargo::ops::load_lockfile #14

thejpster opened this issue Dec 7, 2016 · 3 comments

Comments

@thejpster
Copy link

$ cargo install cargo-open
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading cargo-open v0.3.0
 Downloading clap v2.19.1
 Downloading rustc-serialize v0.3.22
 Downloading num_cpus v1.2.0
 Downloading libc v0.2.18
 Downloading tar v0.4.9
 Downloading gcc v0.3.39
 Downloading cmake v0.1.19
 Downloading rand v0.3.15
 Downloading unicode-segmentation v0.1.3
   Compiling bitflags v0.7.0
   Compiling openssl-probe v0.1.0
   Compiling unicode-width v0.1.3
   Compiling rustc-serialize v0.3.22
   Compiling strsim v0.5.2
   Compiling gcc v0.3.39
   Compiling glob v0.2.11
   Compiling matches v0.1.4
   Compiling regex-syntax v0.3.9
   Compiling unicode-bidi v0.2.3
   Compiling winapi v0.2.8
   Compiling cfg-if v0.1.0
   Compiling bitflags v0.1.1
   Compiling ansi_term v0.9.0
   Compiling libc v0.2.18
   Compiling unicode-normalization v0.1.2
   Compiling crossbeam v0.2.10
   Compiling net2 v0.2.26
   Compiling memchr v0.1.11
   Compiling term_size v0.2.1
   Compiling unicode-segmentation v0.1.3
   Compiling idna v0.1.0
   Compiling aho-corasick v0.5.3
   Compiling winapi-build v0.1.1
   Compiling num_cpus v1.2.0
   Compiling utf8-ranges v0.1.3
   Compiling lazy_static v0.2.2
   Compiling pkg-config v0.3.8
   Compiling psapi-sys v0.1.0
   Compiling ws2_32-sys v0.2.1
   Compiling advapi32-sys v0.2.0
   Compiling filetime v0.1.10
   Compiling vec_map v0.6.0
   Compiling rand v0.3.15
   Compiling miniz-sys v0.1.7
   Compiling clap v2.19.1
   Compiling tar v0.4.9
   Compiling libz-sys v1.0.7
   Compiling url v1.2.3
   Compiling tempdir v0.3.5
   Compiling openssl v0.7.14
   Compiling flate2 v0.2.14
   Compiling openssl-sys-extras v0.7.14
   Compiling openssl-sys v0.7.17
   Compiling cmake v0.1.19
   Compiling curl-sys v0.2.5
   Compiling log v0.3.6
   Compiling kernel32-sys v0.2.2
   Compiling fs2 v0.2.5
   Compiling term v0.4.4
   Compiling thread-id v2.0.0
   Compiling thread_local v0.2.7
   Compiling miow v0.1.3
   Compiling libgit2-sys v0.4.6
   Compiling regex v0.1.80
   Compiling toml v0.2.1
   Compiling libssh2-sys v0.1.41
   Compiling git2 v0.4.4
   Compiling env_logger v0.3.5
   Compiling semver-parser v0.6.1
   Compiling docopt v0.6.86
   Compiling semver v0.5.1
   Compiling curl v0.3.11
   Compiling crates-io v0.4.0
   Compiling git2-curl v0.5.0
   Compiling cargo v0.14.0
   Compiling cargo-open v0.3.0
error[E0425]: unresolved name `cargo::ops::load_lockfile`
  --> /home/jgp/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-open-0.3.0/src/main.rs:66:30
   |
66 |     let resolved      = try!(cargo::ops::load_lockfile(&lock_path, &src_id)).unwrap();
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved name

error: aborting due to previous error

error: failed to compile `cargo-open v0.3.0`, intermediate artifacts can be found at `/tmp/cargo-install.QPxBb9k1TMHL`

Caused by:
  Could not compile `cargo-open`.

To learn more, run the command again with --verbose.

Rust installed with rustup.rs on CentOS 7.

$ rustc -Vv
rustc 1.13.0 (2c6933acc 2016-11-07)
binary: rustc
commit-hash: 2c6933acc05c61e041be764cb1331f6281993f3f
commit-date: 2016-11-07
host: x86_64-unknown-linux-gnu
release: 1.13.0
@AndrewRadev
Copy link
Contributor

This PR seems to fix the issue for me: #15. If you'd like to get the tool working for you for the moment, you could git-clone my fork and do a cargo install.

@skull-squadron
Copy link

This appears abandoned. It's broken and should be yanked from crates.io since it doesn't even compile.

@JonnieCache
Copy link

I have a new implementation available here:

https://github.com/JonnieCache/cargo-open

I have applied to the author of this repo to take over crate maintenance, in the meantime you can install it with:

cargo install --git https://github.com/JonnieCache/cargo-open

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

No branches or pull requests

4 participants