aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/bazel/bazel_repository_cache_test.sh
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2018-04-18 08:43:04 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-18 08:44:51 -0700
commit48813899e45d296b134b1012b60f954e4c7a0b4b (patch)
tree717e9e1f8a295fdaac0d7433e855b64b86c8fc97 /src/test/shell/bazel/bazel_repository_cache_test.sh
parent641569af14f9f639291f153f78b3ba467d9309e5 (diff)
Test repository cache with Skylark version of http_archive
The native version of http_archive is deprecated in favor of the Skylark version. Both versions use the repository cache in the same way, in fact, they eventually call the same HttpDownloader. So change the integration tests to test the repository cache via the non-deprecated repository function instead. Change-Id: I2583af0d70a4e701ce6e6d5dc77ab2c734c367c3 PiperOrigin-RevId: 193363214
Diffstat (limited to 'src/test/shell/bazel/bazel_repository_cache_test.sh')
-rwxr-xr-xsrc/test/shell/bazel/bazel_repository_cache_test.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/shell/bazel/bazel_repository_cache_test.sh b/src/test/shell/bazel/bazel_repository_cache_test.sh
index 5b3995d1f8..95699873a9 100755
--- a/src/test/shell/bazel/bazel_repository_cache_test.sh
+++ b/src/test/shell/bazel/bazel_repository_cache_test.sh
@@ -43,6 +43,8 @@ function setup_repository() {
# Test with the extension
serve_file $repo2_zip
cat > WORKSPACE <<EOF
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
http_archive(
name = 'endangered',
url = 'http://localhost:$nc_port/bleh',