aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/bazel/testdata
diff options
context:
space:
mode:
authorGravatar Ed Baunton <edbaunton@gmail.com>2018-01-10 02:23:11 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-01-10 02:25:27 -0800
commit512b9b9b353bcabc436a87329fadd449c684c44b (patch)
tree505864869094971e3ba16168664c09c75c6622fc /src/test/shell/bazel/testdata
parent950c2a2d5bb4886dcec94caf601c5fb10f7c3f3d (diff)
Add support for strip_prefix to {new_}git_repository skylark rules
Continuation of https://github.com/bazelbuild/bazel/pull/4356 An approach at supporting strip_prefix with the git skylark rules. This approach unfortunately uses symlinks since you cannot clone a subset of a git repository. It creates a tmp directory which is the 'real' clone and then provides a link in place of the expected location of the repository to the path of the required prefix. Behaviour is only changed if a strip_prefix is provided. Closes #4368. PiperOrigin-RevId: 181438640
Diffstat (limited to 'src/test/shell/bazel/testdata')
-rw-r--r--src/test/shell/bazel/testdata/pluto-repo.tar.gzbin8340 -> 9474 bytes
-rw-r--r--src/test/shell/bazel/testdata/pluto.git_log38
-rw-r--r--src/test/shell/bazel/testdata/refetch-repo.tar.gzbin7999 -> 9094 bytes
-rw-r--r--src/test/shell/bazel/testdata/refetch.git_log13
4 files changed, 49 insertions, 2 deletions
diff --git a/src/test/shell/bazel/testdata/pluto-repo.tar.gz b/src/test/shell/bazel/testdata/pluto-repo.tar.gz
index a347a37312..106e8bfa66 100644
--- a/src/test/shell/bazel/testdata/pluto-repo.tar.gz
+++ b/src/test/shell/bazel/testdata/pluto-repo.tar.gz
Binary files differ
diff --git a/src/test/shell/bazel/testdata/pluto.git_log b/src/test/shell/bazel/testdata/pluto.git_log
index fb98d77cb0..28a3164003 100644
--- a/src/test/shell/bazel/testdata/pluto.git_log
+++ b/src/test/shell/bazel/testdata/pluto.git_log
@@ -1,4 +1,40 @@
-commit b87de9346bb1a4a3d4d2ab1a567b07c5d11a486a (HEAD -> master, tag: 1-build)
+commit a367b7e7f8f362697a079b7d23935bd079058af8 (HEAD -> master, tag: 3-subdir-bare)
+Author: John Doe <john@foo.com>
+Date: Fri Dec 29 20:33:35 2017 -0500
+
+ Remove BUILD and WORKSPACE files
+
+diff --git a/WORKSPACE b/WORKSPACE
+deleted file mode 100644
+index e69de29..0000000
+diff --git a/pluto/BUILD b/pluto/BUILD
+deleted file mode 100644
+index 874e03f..0000000
+--- a/pluto/BUILD
++++ /dev/null
+@@ -1,5 +0,0 @@
+-filegroup(
+- name = "pluto",
+- srcs = ["info"],
+- visibility = ["//visibility:public"],
+-)
+
+commit ceab34fb9b4b9370d52dd5153074089a51bfb50e (tag: 2-subdir)
+Author: John Doe <john@foo.com>
+Date: Wed Dec 27 20:54:31 2017 +0000
+
+ Move pluto files into pluto subdirectory
+
+diff --git a/BUILD b/pluto/BUILD
+similarity index 100%
+rename from BUILD
+rename to pluto/BUILD
+diff --git a/info b/pluto/info
+similarity index 100%
+rename from info
+rename to pluto/info
+
+commit b87de9346bb1a4a3d4d2ab1a567b07c5d11a486a (tag: 1-build)
Author: John Doe <john@foo.com>
Date: Thu Jul 16 04:50:53 2015 -0700
diff --git a/src/test/shell/bazel/testdata/refetch-repo.tar.gz b/src/test/shell/bazel/testdata/refetch-repo.tar.gz
index 1f6a91578f..a3acee2050 100644
--- a/src/test/shell/bazel/testdata/refetch-repo.tar.gz
+++ 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
index 1d42f6979b..e0ef8294bc 100644
--- a/src/test/shell/bazel/testdata/refetch.git_log
+++ b/src/test/shell/bazel/testdata/refetch.git_log
@@ -1,4 +1,15 @@
-commit 62777acc140a240a3ec8fa1adecaa6bc9e25ccdd (HEAD -> master)
+commit b0a2adafea74d36e0374a119eab6623dbe5ba418 (HEAD -> master)
+Author: John Doe <john@foo.com>
+Date: Fri Dec 29 18:36:06 2017 -0500
+
+ Move BUILD into a subdirectory
+
+diff --git a/BUILD b/gdir/BUILD
+similarity index 100%
+rename from BUILD
+rename to gdir/BUILD
+
+commit 62777acc140a240a3ec8fa1adecaa6bc9e25ccdd
Author: John Doe <john@foo.com>
Date: Wed Nov 25 13:20:07 2015 +0100