Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching repositories twice does not work #329

Closed
lberki opened this issue Jul 27, 2015 · 1 comment
Closed

Fetching repositories twice does not work #329

lberki opened this issue Jul 27, 2015 · 1 comment
Assignees

Comments

@lberki
Copy link
Contributor

lberki commented Jul 27, 2015

./compile.sh
cat > base_workspace/WORKSPACE <<EOF
git_repository(
    name = "protobuf",
    remote = "https://github.com/google/protobuf",
    commit = "HEAD"
)
EOF
cd base_workspace
../output/bazel --batch build @protobuf//:protoc
../output/bazel --batch build @protobuf//:protoc

The second execution results in an ugly exception:

java.lang.RuntimeException: Unrecoverable error while evaluating node 'GIT_CLONE:https://github.com/google/protobuf -> /usr/local/google/home/lberki/.cache/bazel/_bazel_lberki/b054b3aab4025af98dc2601e4ff14214/external/protobuf (HEAD) submodules: false' (requested by nodes 'GIT_REPOSITORY:@protobuf')
    at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:745)
    at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$1.run(AbstractQueueVisitor.java:346)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Destination path "protobuf" already exists and is not an empty directory
    at org.eclipse.jgit.api.CloneCommand.init(CloneCommand.java:152)
    at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:132)
    at com.google.devtools.build.lib.bazel.repository.GitCloneFunction.compute(GitCloneFunction.java:68)
    at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:709)
    ... 4 more
@lberki lberki self-assigned this Jul 27, 2015
@lberki lberki closed this as completed Jul 27, 2015
@lberki
Copy link
Contributor Author

lberki commented Jul 27, 2015

Accidentally submitted twice. Duplicate is #330.

cushon added a commit that referenced this issue Jul 28, 2015
Adds a -XepDisableWarningsInGeneratedCode flag, which if set suppressings
warnings from being emitted inside code annotation with @generated. Error are
not affected.

Fixes #329

--
MOS_MIGRATED_REVID=97185343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant