--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAF08gXG2Xcsv%2B7ViWTt%2BU%3DBxbLZJJ2o-HmJAqJmKr1VVL5XXrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
tl;dr I can reproduce you not reproducing my problem :P
I tried this on my home laptop and got the same error.
I ran `bazel clean --expunge`, re-ran `bazel build`, and got the same error.
I ran `rm -rf $GOPATH/pkg`, re-ran `bazel build`, and got the same error.
I saw that I had an existing `fetch_repo` binary in $GOBIN, so I updated it with `go get -u github.com/bazelbuild/rules_go/go/tools/fetch_repo`, then re-ran `bazel build`, and got the same error.
To isolate my system, I created a Docker image with Bazel and git installed using this Dockerfile:
----8< Dockerfile 8<----
FROM ubuntu:latest
RUN \
set -x && \
apt-get update && \
apt-get install -y curl && \
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" >> /etc/apt/sources.list.d/bazel.list && \
curl https://bazel.build/bazel-release.pub.gpg | apt-key add - && \
apt-get update && \
apt-get install -y bazel git
----8< Dockerfile 8<----
And built this image with
$ docker build -t bazel-and-git .
(this step takes a while)
Within this image, I checked out and ran the code, and it worked:
$ docker run -it bazel-and-git /bin/bash
# mkdir -p ~/src/github.com/twpayne
# cd ~/src/github.com/twpayne
# git clone https://github.com/twpayne/go-greet.git
...
# cd go-greet
# bazel build //helloworld:helloworld_proto
Extracting Bazel installation...
.........
INFO: Found 1 target...
Target //helloworld:helloworld_proto up-to-date:
bazel-bin/helloworld/github.com/twpayne/go-greet/helloworld/helloworld_proto.a
INFO: Elapsed time: 94.890s, Critical Path: 28.61s
So, some state on my work and personal laptops is causing the problem. Note that both are macOS laptops, whereas the Docker container (and you, assuming you're running Goobuntu) are running Linux.
I have to run now, but hopefully this helps narrow down the problem.
Regards,
Tom
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/da8fa233-b768-4dc3-9999-0f0fe7e90cc9%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.