golang “go get” command showing “go: missing Git command” error

后端 未结 5 1895
栀梦
栀梦 2021-02-01 17:22

I\'m new in go lang. Trying to import a go library using \"go get\" command but in cmd getting this error:

go: missing Git command. See https://golang.org/s/goge         


        
5条回答
  •  别那么骄傲
    2021-02-01 17:48

    If you're running this as a Jenkins pipeline script, start your Docker image like:

    node('docker') {
      docker.image('golang:1.14rc1-alpine3.11').inside(' -u 0') {
        sh 'apk add curl'
        ...
      }
    }
    

提交回复
热议问题