From d3607171288e73b9cec996731d8aee9567ca3a74 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Thu, 15 Aug 2024 11:08:25 -0400 Subject: [PATCH] Fetch gcc toolchain from `archive/` URL (#287) Previously, we were using the `tarball/` URL, which includes both the organization and the repo name as part of the prefix. GitHub also has an `archive/` URL format which, according to this [comment], only includes the repo name, not the organization! This PR switches to the new format, making us less vulnerable to build breakage if the repo changes homes again. (Notice how `f0rmiga` never appears except in the URL --- in particular, it is now absent from `strip_prefix`.) The even better solution would be to download stable tarballs from the release page, but the project has not yet begun to provide those. [comment]: https://github.com/f0rmiga/gcc-toolchain/issues/165#issuecomment-2290006934 --- WORKSPACE | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 46685878..6d734e9d 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -89,11 +89,11 @@ http_archive( patches = [ "@//:third_party/aspect_gcc_toolchain/0001-Expose-target_settings-and-set-std-c-14.patch", ], - sha256 = "9c075a67d401d1aa8b4935cc520e9926b1926fba72c1ab609400b239c92f5639", - strip_prefix = "f0rmiga-gcc-toolchain-ac745d4", + sha256 = "0651c0d595417b71fdbd903bf852c59a4a576a82e15651bd9672416b64019530", + strip_prefix = "gcc-toolchain-ac745d4685e2095cc4f057862800f3f0a473c201", type = "tar.gz", urls = [ - "https://github.com/f0rmiga/gcc-toolchain/tarball/ac745d4685e2095cc4f057862800f3f0a473c201", + "https://github.com/f0rmiga/gcc-toolchain/archive/ac745d4685e2095cc4f057862800f3f0a473c201.tar.gz", ], )