Skip to content

bzip2: use mirror archive#3704

Merged
meteorcloudy merged 1 commit intobazelbuild:mainfrom
rockwotj:main
Feb 5, 2025
Merged

bzip2: use mirror archive#3704
meteorcloudy merged 1 commit intobazelbuild:mainfrom
rockwotj:main

Conversation

@rockwotj
Copy link
Copy Markdown
Contributor

@rockwotj rockwotj commented Jan 31, 2025

The sourceware HTTP repo is pretty consistently giving us 500s in our
CI environment. Use a mirror to prevent flakes.

@bazel-io
Copy link
Copy Markdown
Member

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (bzip2) have been updated in this PR.
Please review the changes. You can view a diff against the previous version in the "Generate module diff" check.

@bazel-io bazel-io added the skip-url-stability-check Skip the URL stability check for the PR label Jan 31, 2025
@rockwotj rockwotj force-pushed the main branch 4 times, most recently from 307b308 to e89dfb5 Compare January 31, 2025 21:02
@fmeum
Copy link
Copy Markdown
Contributor

fmeum commented Jan 31, 2025

Let's wait for bazelbuild/bazel#25163 instead - if there is a release archive, we should use it.

@rockwotj
Copy link
Copy Markdown
Contributor Author

if there is a release archive, we should use it.

There is not, but agreed. Happy to update this PR if there is a mirrored archive 👍

@rockwotj
Copy link
Copy Markdown
Contributor Author

rockwotj commented Feb 1, 2025

All the development has moved to gitlab afaik so maybe it should come from there

@rockwotj rockwotj changed the title bzip2: use github archive bzip2: use mirror archive Feb 3, 2025
The sourceware HTTP repo is pretty consistently giving us 500s in our
CI environment. Use a mirror to prevent this.
@meteorcloudy meteorcloudy merged commit 369d46a into bazelbuild:main Feb 5, 2025
5 checks passed
rdesgroppes added a commit to DataDog/datadog-agent that referenced this pull request Aug 26, 2025
### What does this PR do?
The present change simply consists in switching the `bazel_dep` for
`bzip2` to a [patch version of the module that uses a Bazel-hosted
mirror](bazelbuild/bazel-central-registry#3704):
```diff
-    "url": "https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz"
+    "url": "https://mirror.bazel.build/sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz"
```

### Motivation
sourceware.org happens to blacklist some IP ranges, see:
- conan-io/conan-center-index#26881
- https://sourceware.org/pipermail/overseers/2025q1/019931.html
- https://lwn.net/Articles/1008897/

... which prevents from successfully fetching `bzip2` from our
AWS-hosted macOS runners:
```
ERROR: no such package '@@bzip2+//': java.io.IOException: Error
 downloading [https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz] to
 /private/var/tmp/_bazel_ec2-user/a7472b478f70b5844f17194e8ea22363/external/bzip2+/temp4855649124641959474/bzip2-1.0.8.tar.gz:
  GET returned 403 Forbidden
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-url-stability-check Skip the URL stability check for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants