karalabe / xgo

Go CGO cross compiler
MIT License
2.14k stars 280 forks source link

Add a new CLI option to pass custom env to docker run command #208

Open jiladahe1997 opened 3 years ago

jiladahe1997 commented 3 years ago

I have a problem similar to issue:#197, which can be solved by passing -e GOPROXY=...... in docker run. However, xgo cannot pass custom environments to docker, this PR implements that.