Closed petroseskinder closed 7 years ago
There are two problems at hand here. First, the versioning issue with the brackets around the issue (handled in #1 ), and the second being the duplicate exports statements. The latter needs to be investigated.
Fixing the versioning in #1 seems to have resolved the duplicate entries as well. Please lmk if you see this again.
Migrated from issue 3089 in main repository.
Description of the problem
Sometimes the generate_workspace tool generates a BUILD file that fails to build, complaining about a duplicate export label.
e.g. the artifact
io.grpc:grpc-protobuf:1.3.0
results in the errorIf possible, provide a minimal example to reproduce the problem:
To reproduce this problem, first build the generate_workspace tool from the bazel repo (I built from tag 0.4.5 @ 037b9b9).
Then run (in an empty directory):
(It looks like the
Could not resolve dependency error
has already been reported in #1794. We've been working around it by manually removing the square brackets in the version spec, which has worked for us so far)Running
bazel build
now fails with the duplicate label error:And here is the relevant rule from the generated BUILD file:
Environment info
Operating System: MacOS El Capitan 10.11.6
Bazel version (output of bazel info release): release 0.4.5-homebrew
(
generate_workspace
is not included in this distribution, so I built it from the 0.4.5 tag @037b9b9
)Have you found anything relevant by searching the web?
(e.g. StackOverflow answers, GitHub issues, email threads on the bazel-discuss Google group)
I looked but didn't find anything relevant to this issue.
Anything else, information or logs or outputs that would be helpful?
An archive of the generated BUILD and WORKSPACE files is attached