my OS Mac10.13.4
I viewed #60 issue,And Performed each of the above, but still does not work.
I listen to @ry at http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/ to install xcode-select

And pkg-config 0.29.2 is already installed
I try go get -u github.com/ry/v8worker2 agin.

then git git submodule update --init

I don't know what happened。
@Adherentman It seems your cloned version of v8 corrupted, I'm not a git expert but maybe re-cloning v8 might work...
cd $GOPATH/src/github.com/ry/v8worker2
rm -rf v8
git clone https://github.com/v8/v8.git
cd v8
git checkout fe12316ec4b4a101923e395791ca55442e62f4cc
I use depot tools to fetch v8.
export PATH=$PATH:$GOPATH/src/github.com/ry/v8worker2/depot_tools
cd $GOPATH/src/github.com/ry/v8worker2
rm -rf v8
fetch v8
cd v8
git checkout fe12316
Try vpn please.
I build success in my mac.
FWIW I'm also getting this error on a fresh build within a docker image. Can reproduce with:
FROM golang:1.10-stretch
RUN go get -u github.com/ry/v8worker2
A manual clone of v8 still works as a fix.
@Adherentman most Chinese users have to use VPN please .
Not only applying to browser but also your terminal, and make sure to set up a proxy for git:
git config --global http.proxy "localhost:xxxx"
git config --global https.proxy "localhost:xxxx"
@Foveluy @ztplz Thanks,I promise my vpn is working。
Now,I'm try clone v8 👍
@qti3e @ztplz
First of all thank everyone for your help. The previous issue has been solved.
But I get have new Issue, OS: Macos 10.13.4
export PATH="$PATH:$GOPATH/bin".But not work
@Adherentman
Great, it seems like you have made it to the last step, just try append the following to your ~/.zshrc
export GOROOT=/usr/local/go # where your `go` sitting, usually here ( Mac )
export GOPATH=$HOME/go # means `~/go`
export PATH=$PATH:$HOME/go/bin:$GOPATH/bin
after doing so, try to get protoc-gen-go again.
@Adherentman Reinstall protoc-gen-go and export PATH="$PATH:$GOPATH/bin".
@Foveluy @ztplz nice,Thanks everyone again
it's work:)
I will close this issue! And hope this issue will help people who have the same problem!

Most helpful comment
@Adherentman It seems your cloned version of v8 corrupted, I'm not a git expert but maybe re-cloning
v8might work...