Description
When I running ./cargo-zng
on cargo
1.81.0, I get:
tar: .cargo_vcs_info.json: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
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 run rustup 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 of cargo
itself which I have omitted here:
+ set -eu
+ trap 'rm -rf "$tempdir"' 0 INT
++ mktemp -d
+ tempdir=/var/folders/8q/fntngxw15tz1vjj_93ms_jf00000gq/T/tmp.iMaAxAzP51
+ cargo package -l --allow-dirty
+ grep -v '^Cargo\.toml\.orig$'
+ tar --files-from=- -cf -
+ tar -C /var/folders/8q/fntngxw15tz1vjj_93ms_jf00000gq/T/tmp.iMaAxAzP51 -xf -
tar: .cargo_vcs_info.json: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
+ cp Cargo-zng.toml /var/folders/8q/fntngxw15tz1vjj_93ms_jf00000gq/T/tmp.iMaAxAzP51/Cargo.toml
+ cp -a systest /var/folders/8q/fntngxw15tz1vjj_93ms_jf00000gq/T/tmp.iMaAxAzP51/systest
+ mv /var/folders/8q/fntngxw15tz1vjj_93ms_jf00000gq/T/tmp.iMaAxAzP51/systest/Cargo-zng.toml /var/folders/8q/fntngxw15tz1vjj_93ms_jf00000gq/T/tmp.iMaAxAzP51/systest/Cargo.toml
+ cd /var/folders/8q/fntngxw15tz1vjj_93ms_jf00000gq/T/tmp.iMaAxAzP51
+ cargo