我正在尝试从const { spawn } = require('child_process')
// Java App is within args
const args = []
const javaProcess = spawn('java', args, { cwd: __dirname })
javaProcess.on('message', (m) => {
console.log('PARENT got message:', m)
})
// Sends { 'hello': 'world' } to the Java process
javaProcess.send({ hello: 'world' })
获得go
个模块。
例如:
github
在go get -v -insecure github.com/aws/aws-sdk-go
go get -v -insecure github.com/gruntworks-io/terratest/modules/aws
ect..
中。
我在公司代理后面。我相信我已经正确设置了它们:
docker build
我收到此消息:http_proxy=....
https_proxy=...
。
我认为(可能是错误的)是从Received HTTP code 407 from proxy after connect
访问go
模块的代理问题,可能是由于转发而引起的。
我尝试了一些与github
相关的设置,以查看它们是否有帮助,但还没有成功。
git
我认为它们不会起作用,但是无论如何我还是尽力了。
我愿意接受想法。一种想法是以某种方式使用git config --global http.sslverify false &&\
git config --global https.sslverify false &&\
git config --global http.proxy http://... &&\
git config --global https.proxy http://... &&\
git config --global http.proxyAuthMethod 'basic' &&\
git config --global https.proxyAuthMethod 'basic'
来获取模块并将curl
手动指向模块。我不确定这是否可行以及如何运作。