diff options
author | kchodorow <kchodorow@google.com> | 2017-07-11 18:12:55 +0200 |
---|---|---|
committer | László Csomor <laszlocsomor@google.com> | 2017-07-11 18:26:24 +0200 |
commit | 937350211dcd55a4714ec32ebbf33fffcc42cdf2 (patch) | |
tree | 77f2cb3d5b6c4fe1e66691a3f0bc4041593168c4 /src/main/java/com/google/devtools/build/lib/server | |
parent | a334363a500fb9df953fe2c70184ee013ff77ccb (diff) |
Resolve references to @main-repo//foo to //foo
Bazel was creating an dummy external repository for @main-repo, which
doesn't work with package paths and will cause conflicts once
@main-repo//foo and //foo refer to the same path.
This adds a "soft pull" option to WorkspaceNameFunction: it can either
parse the entire WORKSPACE file to find the name or just the first section.
That way PackageLookupFunction can find the repository name without causing
a circular dependency.
This should have no change of behavior and is already tested in
https://github.com/bazelbuild/bazel/blob/master/src/test/shell/bazel/workspace_test.sh#L176.
PiperOrigin-RevId: 161536466
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/server')
0 files changed, 0 insertions, 0 deletions