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

rustbuild: x.py install: error: manifest path .. cargo/crates/credential/cargo-credential-1password/Cargo.toml does not exist` #110742

Closed
matthiaskrgr opened this issue Apr 23, 2023 · 6 comments · Fixed by #110744
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-cargo Relevant to the cargo team, which will review and decide on the PR/issue.

Comments

@matthiaskrgr
Copy link
Member

Happened during x.py intall


Uplifting rustc (stage1 -> stage3)
Building tool cargo (stage2 -> stage3)
    Finished release [optimized + debuginfo] target(s) in 0.19s
Building tool cargo-credential-1password (stage2 -> stage3)
error: manifest path `/home/matthias/vcs/github/rust_debug_assertions/src/tools/cargo/crates/credential/cargo-credential-1password/Cargo.toml` does not exist
Dist cargo-1.71.0-dev-x86_64-unknown-linux-gnu
	finished in 2.199 seconds
Install cargo stage2 (Some(x86_64-unknown-linux-gnu))
install: uninstalling component 'cargo'
install: creating uninstall script at /home/matthias/.rustup/toolchains/local-debug-assertions/lib/rustlib/uninstall.sh
install: installing component 'cargo'

    cargo installed.
    

probably since #110653 cc @weihanglo

@matthiaskrgr matthiaskrgr added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-cargo Relevant to the cargo team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Apr 23, 2023
@ehuss
Copy link
Contributor

ehuss commented Apr 23, 2023

You'll need to delete the src/tools/cargo/crates/credential directory. There was probably a Cargo.lock file left behind, and git won't delete the directory automatically.

@matthiaskrgr
Copy link
Member Author

Hm, there is no such directory ?! 😅

~/vcs/github/rust_debug_assertions/src/tools/cargo/crates (de80432)
at 00:22:52 ❯ ls
cargo-platform      cargo-util  mdman
cargo-test-macro    crates-io   resolver-tests
cargo-test-support  home        semver-check

There is a rust_debug_assertions/src/tools/cargo/credential though

@weihanglo
Copy link
Member

My fault. I forgot to update

"src/tools/cargo/crates/credential/cargo-credential-1password",

Will send a PR.

@matthiaskrgr
Copy link
Member Author

What is most concerning to me is that this actually did not fail the entire x.py install, so this would/did not even break CI..? is there something we can do about that?

@weihanglo
Copy link
Member

weihanglo commented Apr 23, 2023

Run ./x.py build cargo in CI probably?

I supposed to run it locally before submitting a PR. However, that was an unlucky day. Something on nightly cannot build, so I blindly pushed 🙇🏾.

@ehuss
Copy link
Contributor

ehuss commented Apr 24, 2023

Oh, sorry, I misunderstood what was going on. There have been some issues with those directories being moved around, but this was different.

What is most concerning to me is that this actually did not fail the entire x.py install, so this would/did not even break CI..? is there something we can do about that?

The issue here is that the credential helpers are being included on an "as available" basis. Because they are nightly and experimental, they were intentionally marked as being optional so that if they failed it wouldn't cause problems here on rust-lang/rust. Eventually, if it gets stabilized, this will need to change to make them required tools.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Apr 24, 2023
…, r=ehuss

bootstrap: update paths cargo-credential crate

This should be done in rust-lang#110653 but forgot.

Fixes rust-lang#110742

## How to verify this patch

Run `./x.py build cargo`. Previously it would fail with

```console
error: manifest path `/projects/rust/src/tools/cargo/crates/credential/cargo-credential-1password/Cargo.toml` does not exist
```
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Apr 24, 2023
…, r=ehuss

bootstrap: update paths cargo-credential crate

This should be done in rust-lang#110653 but forgot.

Fixes rust-lang#110742

## How to verify this patch

Run `./x.py build cargo`. Previously it would fail with

```console
error: manifest path `/projects/rust/src/tools/cargo/crates/credential/cargo-credential-1password/Cargo.toml` does not exist
```
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Apr 24, 2023
…, r=ehuss

bootstrap: update paths cargo-credential crate

This should be done in rust-lang#110653 but forgot.

Fixes rust-lang#110742

## How to verify this patch

Run `./x.py build cargo`. Previously it would fail with

```console
error: manifest path `/projects/rust/src/tools/cargo/crates/credential/cargo-credential-1password/Cargo.toml` does not exist
```
@bors bors closed this as completed in b708aad Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-cargo Relevant to the cargo team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants