-
Notifications
You must be signed in to change notification settings - Fork 92
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
Advice on how to debug errors that aren't reproducible in devshell #553
Comments
Hi @cameron1024 it sounds like you have made a change to a
There is a more "benign" version of these types of change (e.g. one workspace crate depending on another) which don't need network access, however, we default to running builds with Commit the results of |
Hmm, I don't think I have any uncommitted changes to My understanding about
I guess my point about The thing that's really confusing me is that the |
It's not that you have uncommited changes to An easy way of doing that without updating all your dependencies is to run |
That's the thing that's puzzling me, |
Hmm, puzzling indeed... one thing you can try is |
I'll give that a shot and see if I can find a difference. I'm not super familiar with |
Basically Nix will run every build in its own (sandboxed) directory, which gets cleaned up (deleted) when the build is finished (successful or not). Using |
Hmm, the mysteries continue... I ran that command, and had a look inside the directory, and the That said, I'm not including anything from the |
This is a bit of a vague question, so apologies in advance if it's considered off-topic.
I'm trying to use crane to build a project at $JOB, which is quite large and closed source, and I'm getting a strange issue where
nix build
reports the following error:However, when I enter the devshell and run
cargo check --release --locked --all-targets
, it succeeds. I do notice that runningcargo generate-lockfile
does update the lockfile, but I wouldn't have thought that affects things.I can't share the source, and there's >1k crates in the crate graph, so pinning down exactly what's causing the issue isn't quick, but I was wondering if there are general guidelines on how to debug these kinds of issues?
Thanks 😁
The text was updated successfully, but these errors were encountered: