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

Cargo in docker can't find Cargo.toml #65711

Closed
jhfrontz opened this issue Oct 22, 2019 · 4 comments
Closed

Cargo in docker can't find Cargo.toml #65711

jhfrontz opened this issue Oct 22, 2019 · 4 comments

Comments

@jhfrontz
Copy link

As of nightly-2019-10-21, cargo seems to be unable to find the Cargo.toml file in the current working directory of a docker-based gitlab CI job:

$ pwd
/builds/jhf/functionary
$ head -1 /builds/jhf/functionary/Cargo.toml
###
$ CARGO_LOG="trace" cargo build
[2019-10-22T20:16:20Z DEBUG cargo] exit_with_error; err=CliError { error: Some(ErrorMessage { msg: "could not find `Cargo.toml` in `/builds/jhf/functionary` or any parent directory" }), unknown: false, exit_code: 101 }
error: could not find `Cargo.toml` in `/builds/jhf/functionary` or any parent directory

(maybe related to #65662 ?)

@jonas-schievink
Copy link
Contributor

Can you run this with strace to find out whether this is due to statx?

@jhfrontz
Copy link
Author

Can you run this with strace to find out whether this is due to statx?

I ran with strace but I'm not sure what I'm looking for -- I don't see any statx calls in the trace, but I do see a bunch of ENOENT (and other failures). It's hard to tell which are happening "normally" as part of checking for things. I'll work on sanitizing a trace to post.

@jhfrontz
Copy link
Author

strace output: https://pastebin.com/KsZFkaAn

@sfackler
Copy link
Member

syscall_332 is statx, so this is a duplicate of #65662

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

No branches or pull requests

3 participants