Stream: t-compiler/help

Topic: error: failed to read `src/tools/miri/cargo-miri/Cargo.toml`


Joshua Nelson (Jul 13 2020 at 22:21, on Zulip):

Anyone recognize this error? I can't do anything with x.py at all :(

$ x.py check
Updating only changed submodules
Submodules updated in 0.01 seconds
error: failed to read `/home/joshua/src/rustc2/src/tools/miri/cargo-miri/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
failed to run: /home/joshua/src/rustc2/build/x86_64-unknown-linux-gnu/stage0/bin/cargo build --manifest-path /home/joshua/src/rustc2/src/bootstrap/Cargo.toml
Joshua Nelson (Jul 13 2020 at 22:23, on Zulip):

git submodule deinit --all -f seems to have fixed it

RalfJ (Jul 15 2020 at 07:29, on Zulip):

yeah I was about to say looks like a submodule thing

RalfJ (Jul 15 2020 at 07:29, on Zulip):

I have this in my .gitconfig:

[alias]
        subfix = submodule update --init --recursive
RalfJ (Jul 15 2020 at 07:30, on Zulip):

and then I run git subfix basically after every pull/checkout

RalfJ (Jul 15 2020 at 07:30, on Zulip):

there's also

[submodule]
        recurse = true

but that breaks rebasing so I had to disable it again :(

Josh Triplett (Jul 22 2020 at 08:25, on Zulip):

I tend to run into broken submodules rather often myself. I do an update and the version of the submodule doesn't agree with what the top-level commit wants.

Last update: Sep 27 2020 at 13:00UTC