-
Notifications
You must be signed in to change notification settings - Fork 77
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
In cargo-zng
on a recent toolchain, tar
fails on .cargo_vcs_info.json
#214
Comments
Thanks a lot for reporting! |
Maybe it does not happen on all macOS systems? Is there anything in particular I should look for, or any other details I should report? |
It turns out this is not due to macOS at all, but has recently started happening on all systems. I believe it is due to some change in Edit: I have edited the issue title and body.
As written, the script continues even if a command in the pipeline, other than the rightmost command, fails: Line 2 in bb9e89f
Although I think -set -eu
+set -eu -o pipefail Should that change be made? If |
cargo-zng
on macOS, tar
fails on .cargo_vcs_info.json
cargo-zng
on a recent toolchain, tar
fails on .cargo_vcs_info.json
I just tried it and on cargo v1.80.1 I see no issue:
Probably newer versions of A fix would be to also |
Is it known that it should be omitted even if it is present on disk? |
Yes, it's known for this project even though generally one could certainly not assume that. As long as this file isn't actually present in the project tree we know it's never going to be on disk (even though Cargo adds them to the package). I don't even know what happens if a |
I've opened #217 for this. |
In addition to `Cargo.toml.orig`. This also refactors the command to use fixed string (`-F`) and match whole lines (`-x`), to eliminate the `^` and `$` anchors and `\` escapes from the pattern. See rust-lang#214.
When I running
./cargo-zng
oncargo
1.81.0, I get:I first observed this on a macOS 14.6 system, which if I recall correctly I had run
rustup update
on shortly before. I had thought the cause had something to do with macOS before, but now I believe it is triggered by some change in 1.81.0, because I have since observed it on two Ubuntu system and Windows, all of which I had runrustup update
on between not seeing it and seeing it.This happens in the
tar
pipeline, so it occurs whether or not there is a subcommand. I've verified that it happens both when the full command is./cargo-zng
and when it is./cargo-zng build
. The latter seems still to build without errors on systems that did not have errors before, including macOS.I found this when testing #213 but it occurs, at least on the test machines I am using, with or without those changes.
Running
bash -x cargo-zng
on macOS produces this output, followed by the output ofcargo
itself which I have omitted here:The text was updated successfully, but these errors were encountered: