Skip to content

Commit 02118b5

Browse files
authored
Merge pull request hdl#323 from abrisco/verilator
Fix reproducibility of external repositories
2 parents 81bfab8 + e1ef52e commit 02118b5

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

dependency_support/boost/boost.bzl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414

1515
"""Registers Bazel workspaces for the Boost C++ libraries."""
1616

17-
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
17+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1818
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
1919

2020
def boost():
2121
maybe(
22-
git_repository,
22+
http_archive,
2323
name = "com_github_nelhage_rules_boost",
2424
# This equivalent to boost 1.82
25-
commit = "1217caae292dc9f14e8109777ba43c988cf89c5b",
26-
remote = "https://github.com/nelhage/rules_boost",
27-
shallow_since = "1640124117 -0800",
25+
urls = ["https://github.com/nelhage/rules_boost/archive/1217caae292dc9f14e8109777ba43c988cf89c5b.zip"],
26+
strip_prefix = "rules_boost-1217caae292dc9f14e8109777ba43c988cf89c5b",
27+
integrity = "sha256-dBOuD+owIZaNbz07AXJJmwdPYcZsQU54rD/s+D8VL/I=",
2828
patches = [
2929
# rules_boost does not include Boost Python, see
3030
# https://github.com/nelhage/rules_boost/issues/67

dependency_support/com_google_protobuf/com_google_protobuf.bzl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
1414

1515
"""Registers Bazel workspaces for the GNU readline library."""
1616

17-
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
17+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1818
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
1919

2020
def com_google_protobuf():
2121
maybe(
22-
git_repository,
22+
http_archive,
2323
name = "com_google_protobuf",
24-
tag = "v23.3",
25-
patches = ["@com_google_ortools//patches:protobuf-v23.3.patch"],
24+
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v23.3/protobuf-23.3.tar.gz"],
25+
strip_prefix = "protobuf-23.3",
26+
integrity = "sha256-Ol9HrTqhAZLFV3/whrJLlzmjaTfDTOq225EqFqPvf44=",
2627
patch_args = ["-p1"],
27-
remote = "https://github.com/protocolbuffers/protobuf.git",
28+
patches = ["@com_google_ortools//patches:protobuf-v23.3.patch"],
2829
)

0 commit comments

Comments
 (0)