Skip to content

Commit

Permalink
Remove placeholders for mirror.bazel.build URLs.
Browse files Browse the repository at this point in the history
These were originally intended to be backfilled when rules_m4 moved to
the bazelbuild GitHub organization, but that move never happened.

GitOrigin-RevId: 149a9a8b6ee6540b405389630ae28654c51ff8ea
  • Loading branch information
jmillikin committed Aug 11, 2022
1 parent de2487b commit 7bff5f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions m4/internal/gnulib/gnulib.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@
_GNULIB_VERSION = "788db09a9f88abbef73c97e8d7291c40455336d8"
_GNULIB_SHA256 = "27ef79e649c95856e05f82414977f5e05d009310f91916b64806d1c61f913485"

_URL_BASE = "github.com/jmillikin/rules_m4/releases/download/v0.1/m4-gnulib-{}.tar.xz".format(_GNULIB_VERSION)

_GNULIB_URLS = [
"https://mirror.bazel.build/" + _URL_BASE,
"https://" + _URL_BASE,
]
_URL_BASE = "https://github.com/jmillikin/rules_m4/releases/download/v0.1/m4-gnulib-{}.tar.xz"

_CONFIG_HEADER = """
#include "gnulib/lib/config.in.h"
Expand Down Expand Up @@ -73,7 +68,7 @@ char *secure_getenv(char const *name);

def gnulib_overlay(ctx, m4_version, extra_copts = []):
ctx.download_and_extract(
url = _GNULIB_URLS,
url = [_URL_BASE.format(_GNULIB_VERSION)],
sha256 = _GNULIB_SHA256,
output = "gnulib",
stripPrefix = "gnulib-" + _GNULIB_VERSION,
Expand Down
1 change: 0 additions & 1 deletion m4/internal/versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# SPDX-License-Identifier: Apache-2.0

_MIRRORS = [
"https://mirror.bazel.build/ftp.gnu.org/gnu/m4/",
"https://mirrors.kernel.org/gnu/m4/",
"https://ftp.gnu.org/gnu/m4/",
]
Expand Down

0 comments on commit 7bff5f2

Please sign in to comment.