set GOPRIVATE env

pull/101/head
Baokun Lee 2019-08-10 23:26:11 +08:00
parent 9946403fec
commit 917f4e7037
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ func init() {
if os.Getenv("GIT_SSH") == "" && os.Getenv("GIT_SSH_COMMAND") == "" {
os.Setenv("GIT_SSH_COMMAND", "ssh -o ControlMaster=no")
}
if excludeHost != "" {
os.Setenv("GOPRIVATE", excludeHost)
}
}
func main() {