Skip to content

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

Closed
@matthiaskrgr

Description

@matthiaskrgr
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

Activity

added
T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-cargoRelevant to the cargo team, which will review and decide on the PR/issue.
C-bugCategory: This is a bug.
on Apr 23, 2023
ehuss

ehuss commented on Apr 23, 2023

@ehuss
Contributor

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

matthiaskrgr commented on Apr 23, 2023

@matthiaskrgr
MemberAuthor

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

weihanglo commented on Apr 23, 2023

@weihanglo
Member

My fault. I forgot to update

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

Will send a PR.

matthiaskrgr

matthiaskrgr commented on Apr 23, 2023

@matthiaskrgr
MemberAuthor

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

weihanglo commented on Apr 23, 2023

@weihanglo
Member

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

ehuss commented on Apr 24, 2023

@ehuss
Contributor

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.

added 3 commits that reference this issue on Apr 24, 2023

Rollup merge of rust-lang#110744 - weihanglo:cargo-credential-install…

723777d

Rollup merge of rust-lang#110744 - weihanglo:cargo-credential-install…

7c8d93c

Rollup merge of rust-lang#110744 - weihanglo:cargo-credential-install…

79efb26
added a commit that references this issue on Apr 24, 2023

Rollup merge of rust-lang#110744 - weihanglo:cargo-credential-install…

b708aad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-cargoRelevant to the cargo team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @ehuss@matthiaskrgr@weihanglo

      Issue actions

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