diff options
author | 2017-04-26 20:28:01 +0200 | |
---|---|---|
committer | 2017-04-26 21:02:05 +0200 | |
commit | f91c00879f1fece1f88ec65240cf385be15a0006 (patch) | |
tree | 643d2b7b7a988cbf9ed3df3a0c902464d82f7c05 /src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java | |
parent | 496d3ded0bce12b7371a93e1183ba30e6aa88032 (diff) |
Automated g4 rollback of commit d5ee3b5397135eebd4b5d5b6bd4a4444093c4df8.
*** Reason for rollback ***
The go rules have tons of transitive dependencies that are not declared in their "local" WORKSPACE files, so this broke lots of projects on ci.bazel.build
I'll fix up the go rules, update all of _their_ reverse-dep projects, and resubmit.
*** Original change description ***
Repositories can only be accessed in projects that define them in their WORKSPACE file
This is prep for #1943 - hierarchical workspace loading.
RELNOTES[INC]: Remote repositories must define any remote repositories they
themselves use (e.g., if @x//:foo depends on @y//:bar, @y must be defined
in @x's WORKSPACE file).
PiperOrigin-RevId: 154321845
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java b/src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java index 9f53e40c34..4f5b63e26e 100644 --- a/src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java +++ b/src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java @@ -551,9 +551,7 @@ public class CcCommonTest extends BuildViewTestCase { new ModifiedFileSet.Builder().modify(PathFragment.create("WORKSPACE")).build(), rootDirectory); FileSystemUtils.createDirectoryAndParents(scratch.resolve("/foo/bar")); - scratch.file("/foo/WORKSPACE", - "workspace(name = 'pkg')", - "local_repository(name = 'bazel_tools', path = '/whatever')"); + scratch.file("/foo/WORKSPACE", "workspace(name = 'pkg')"); scratch.file( "/foo/bar/BUILD", "cc_library(name = 'lib',", |