File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 14
14
15
15
"""Registers Bazel workspaces for the Boost C++ libraries."""
16
16
17
- load ("@bazel_tools//tools/build_defs/repo:git .bzl" , "git_repository " )
17
+ load ("@bazel_tools//tools/build_defs/repo:http .bzl" , "http_archive " )
18
18
load ("@bazel_tools//tools/build_defs/repo:utils.bzl" , "maybe" )
19
19
20
20
def boost ():
21
21
maybe (
22
- git_repository ,
22
+ http_archive ,
23
23
name = "com_github_nelhage_rules_boost" ,
24
24
# 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= " ,
28
28
patches = [
29
29
# rules_boost does not include Boost Python, see
30
30
# https://github.com/nelhage/rules_boost/issues/67
Original file line number Diff line number Diff line change 14
14
15
15
"""Registers Bazel workspaces for the GNU readline library."""
16
16
17
- load ("@bazel_tools//tools/build_defs/repo:git .bzl" , "git_repository " )
17
+ load ("@bazel_tools//tools/build_defs/repo:http .bzl" , "http_archive " )
18
18
load ("@bazel_tools//tools/build_defs/repo:utils.bzl" , "maybe" )
19
19
20
20
def com_google_protobuf ():
21
21
maybe (
22
- git_repository ,
22
+ http_archive ,
23
23
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=" ,
26
27
patch_args = ["-p1" ],
27
- remote = "https://github.com/protocolbuffers/ protobuf.git" ,
28
+ patches = [ "@com_google_ortools//patches: protobuf-v23.3.patch" ] ,
28
29
)
You can’t perform that action at this time.
0 commit comments