authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-10-01 18:07:29-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-10-01 18:07:50-07:00
log210ef5af8e766a922982c0de63f49d6138415cbb
tree7a419ef27c858b41df30c866b1e2b16847c70f7a
parentf317acb2cdaaba46c8eaa4b06be6651e3a9fd34e

ci: windows: adjust tar workaround

tar does not properly implement the -k feature, so don't use it. It incorrectly reports "file exists" when the expected behavior is to leave the existing file alone.

1 files changed, 4 insertions(+), 4 deletions(-)

ci/azure/windows_msvc_install+4-4
......@@ -10,7 +10,7 @@ TARBALL="llvm+clang+lld-13.0.0-x86_64-windows-msvc-release-mt.tar.xz"
1010
1111pip install s3cmd
1212wget -nv "https://ziglang.org/deps/$TARBALL"
13# If the first extraction fails, re-try it once without overwriting old files;
14# this can happen if the tarball contains symlinks that are in the table of contents
15# before the files that they point to.
16tar xf $TARBALL || tar xfk $TARBALL
13# If the first extraction fails, re-try it once; this can happen if the tarball
14# contains symlinks that are in the table of contents before the files that
15# they point to.
16tar -xf $TARBALL || tar -xf --overwrite $TARBALL