From 34fd91cc5895b7242ef84bca1b10b985512b9b84 Mon Sep 17 00:00:00 2001 From: tanmay-karde Date: Sun, 26 Apr 2026 14:02:22 +0530 Subject: [PATCH] Fix source tarball validation instructions --- src/infra/other-installation-methods.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/infra/other-installation-methods.md b/src/infra/other-installation-methods.md index f192da9e..a290463e 100644 --- a/src/infra/other-installation-methods.md +++ b/src/infra/other-installation-methods.md @@ -114,10 +114,17 @@ wget https://ci-artifacts.rust-lang.org/rustc-builds/${TAG}/rustc-nightly-src.ta # Download a source tarball for a stable release # wget https://static.rust-lang.org/dist/rustc-${TAG}-src.tar.xz -# Decompress the tarballs and check if they're the same +# Decompress and extract the tarballs, then compare their contents xz --decompress rustc-*-src.tar.xz xz --decompress build/dist/rustc-*-src.tar.xz -diff rustc-*-src.tar build/dist/rustc-*-src.tar + +rm -rf official built +mkdir official built + +tar -xf rustc-*-src.tar -C official +tar -xf build/dist/rustc-*-src.tar -C built + +diff -ru official built ```