Deno: go get v8worker2 Direct fetching of that commit failed?

Created on 1 Jun 2018  ·  10Comments  ·  Source: denoland/deno

my OS Mac10.13.4
I viewed #60 issue,And Performed each of the above, but still does not work.

I don't know what happened。

Most helpful comment

@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

All 10 comments

@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

  • In #71 , I try export PATH="$PATH:$GOPATH/bin".But not work
    wx20180602-121239 2x

@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!
wx20180602-142452 2x

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ry picture ry  ·  3Comments

kitsonk picture kitsonk  ·  3Comments

CruxCv picture CruxCv  ·  3Comments

davidbarratt picture davidbarratt  ·  3Comments

zugende picture zugende  ·  3Comments