aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/bazel/testdata
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2015-11-25 15:48:16 +0000
committerGravatar Lukacs Berki <lberki@google.com>2015-11-25 16:08:21 +0000
commitf1ffe3621002231fe4828fe4ecfd5f64df9d2052 (patch)
treefecaf49e7cf95eb20e9ef14a3afbfff2bfd8aab8 /src/test/shell/bazel/testdata
parent1ee9441f1839f62d82012636b1bfde6e8561c979 (diff)
Make external repository implementations not re-fetch things on server restart.
This is accomplished by saving a proto of the repository rule in the output tree, then comparing it to that of the previous version. This makes HTTP_DOWNLOAD_CHECKER somewhat superfluous because it only matters if the external repository directory is modified manually. Local repository implementations are not included, mainly because the symlinking is cheap (maybe they should be for reasons of symmetry?) -- MOS_MIGRATED_REVID=108706396
Diffstat (limited to 'src/test/shell/bazel/testdata')
-rw-r--r--src/test/shell/bazel/testdata/BUILD1
-rw-r--r--src/test/shell/bazel/testdata/refetch-repo.tar.gzbin0 -> 7999 bytes
-rw-r--r--src/test/shell/bazel/testdata/refetch.git_log30
3 files changed, 31 insertions, 0 deletions
diff --git a/src/test/shell/bazel/testdata/BUILD b/src/test/shell/bazel/testdata/BUILD
index 291d17a1a5..6064737e6d 100644
--- a/src/test/shell/bazel/testdata/BUILD
+++ b/src/test/shell/bazel/testdata/BUILD
@@ -4,6 +4,7 @@ filegroup(
srcs = [
"outer-planets-repo.tar.gz",
"pluto-repo.tar.gz",
+ "refetch-repo.tar.gz",
],
visibility = ["//src/test/shell/bazel:__pkg__"],
)
diff --git a/src/test/shell/bazel/testdata/refetch-repo.tar.gz b/src/test/shell/bazel/testdata/refetch-repo.tar.gz
new file mode 100644
index 0000000000..1f6a91578f
--- /dev/null
+++ b/src/test/shell/bazel/testdata/refetch-repo.tar.gz
Binary files differ
diff --git a/src/test/shell/bazel/testdata/refetch.git_log b/src/test/shell/bazel/testdata/refetch.git_log
new file mode 100644
index 0000000000..1d42f6979b
--- /dev/null
+++ b/src/test/shell/bazel/testdata/refetch.git_log
@@ -0,0 +1,30 @@
+commit 62777acc140a240a3ec8fa1adecaa6bc9e25ccdd (HEAD -> master)
+Author: John Doe <john@foo.com>
+Date: Wed Nov 25 13:20:07 2015 +0100
+
+ Change 1 to 2
+
+diff --git a/BUILD b/BUILD
+index 335b1cf..07034a3 100644
+--- a/BUILD
++++ b/BUILD
+@@ -1 +1 @@
+-genrule(name="g", srcs=[], outs=["go"], cmd="echo GIT 1 > $@")
++genrule(name="g", srcs=[], outs=["go"], cmd="echo GIT 2 > $@")
+
+commit f0b79ff07baddf85b73ed84459487f78042760ff
+Author: John Doe <john@foo.com>
+Date: Wed Nov 25 13:19:52 2015 +0100
+
+ Initial checkin.
+
+diff --git a/BUILD b/BUILD
+new file mode 100644
+index 0000000..335b1cf
+--- /dev/null
++++ b/BUILD
+@@ -0,0 +1 @@
++genrule(name="g", srcs=[], outs=["go"], cmd="echo GIT 1 > $@")
+diff --git a/WORKSPACE b/WORKSPACE
+new file mode 100644
+index 0000000..e69de29