Skip to content

Commit dd34974

Browse files
KobzolMark-Simulacrum
authored andcommitted
Use a different method to compare source tarball archives
1 parent b8e50bb commit dd34974

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/infra/other-installation-methods.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,10 @@ wget https://ci-artifacts.rust-lang.org/rustc-builds/${TAG}/rustc-nightly-src.ta
151151
# Download a source tarball for a stable release
152152
# wget https://static.rust-lang.org/dist/rustc-${TAG}-src.tar.xz
153153

154-
# Decompress the tarballs and compare their contents
155-
cd build/dist
156-
mkdir archive-local && tar -xf rustc-*-src.tar.xz --strip-components=1 -Carchive-local
157-
mkdir archive-ci && tar -xf ../../rustc-*-src.tar.xz --strip-components=1 -Carchive-ci
158-
diff --brief --recursive archive-local archive-ci
154+
# Decompress the tarballs and check if they're the same
155+
xz --decompress rustc-*-src.tar.xz
156+
xz --decompress build/dist/rustc-*-src.tar.xz
157+
diff rustc-*-src.tar build/dist/rustc-*-src.tar
159158
```
160159

161160
</details>

0 commit comments

Comments
 (0)