go get -u github.com/ry/v8worker2
# cd /home/xiexiuyue/deno/src/github.com/ry/v8worker2; git submodule update --init --recursive
Submodule 'depot_tools' (https://chromium.googlesource.com/chromium/tools/depot_tools.git) registered for path 'depot_tools'
Submodule 'v8' (https://github.com/v8/v8.git) registered for path 'v8'
Cloning into 'depot_tools'...
fatal: unable to access 'https://chromium.googlesource.com/chromium/tools/depot_tools.git/': Failed to connect to chromium.googlesource.com port 443: Connection refused
fatal: clone of 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' into submodule path 'depot_tools' failed
package github.com/ry/v8worker2: exit status 128
then
git submodule update --init
Cloning into 'depot_tools'...
fatal: unable to access 'https://chromium.googlesource.com/chromium/tools/depot_tools.git/': Failed to connect to chromium.googlesource.com port 443: Connection refused
fatal: clone of 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' into submodule path 'depot_tools' failed
then rm v8 & clone v8
v8 fatal: mmap failed: Cannot allocate memory
git config --global http.proxy
null
env | grep -i proxy
null
I also encountered this problem, seeking a detailed solution
Get it by vpn please.
already on use shadowsocks @ztplz
I have the same problem with @0123cf , on windows, using lantern
shadowsocks this is sock5 proxy, so we need to set up a proxy, run it
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
solve the problem
@Athedorer @pandaCure
but clone v8 still
fatal: mmap failed: Cannot allocate memory
depot_tools dir no‘t problem
strong recommend docker https://github.com/maxmcd/deno-docker (slim version about 100MB)
you can try set system-level proxy by:
export http_proxy="http://127.0.0.1:1081"
export https_proxy="http://127.0.0.1:1081"
and then run build.py
I canceled git clone https://github.com/v8/v8.git , change used git clone https://chromium.googlesource.com/v8/v8 to run successfully
Cloning into 'v8'...
remote: Sending approximately 284.34 MiB ...
remote: Counting objects: 7665, done
remote: Finding sources: 100% (5/5)
remote: Total 562519 (delta 478197), reused 562518 (delta 478197)
Receiving objects: 100% (562519/562519), 284.22 MiB | 129.00 KiB/s, done.
Resolving deltas: 100% (478197/478197), done.
Checking connectivity... done.
Checking out files: 100% (9679/9679), done.
Summary, because of the agent problem, turn socks to http.
i run it
sudo apt-get install privoxy
sudo vim /etc/privoxy/config
# forward-socks4 / socks-gw.example.com:1080 .
forward-socks5 / 127.0.0.1:1080 .
service privoxy start
env | grep -i proxy
unset ALL_PROXY
export http_proxy=http://127.0.0.1:8118/
export http_proxy=https://127.0.0.1:8118/

go get -u github.com/ry/v8worker2 is done, but when I execute ./build.py --use_ccache, I got this error:
out_path None
Rebuilding V8
Fetching dependencies.
Traceback (most recent call last):
File "build.py", line 149, in
main()
File "build.py", line 85, in main
lib_fn = Rebuild()
File "build.py", line 97, in Rebuild
EnsureDeps(v8_path)
File "build.py", line 146, in EnsureDeps
env=env)
File "D:\Python\Python36libsubprocess.py", line 286, in check_call
retcode = call(popenargs, *kwargs)
File "D:\Python\Python36libsubprocess.py", line 267, in call
with Popen(popenargs, *kwargs) as p:
File "D:\Python\Python36libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "D:\Python\Python36libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。