Go-get downloads the packages named by the import paths, along with their dependencies. It then installs the named packages, like 'go install'.
Questions tagged [go-get]
80 questions
0
votes
2 answers
Go install error: ambiguous import: found github.com/hashicorp/consul/api in multiple modules
I'm trying to install Levant but I'm getting the error:
go install github.com/hashicorp/levant
build github.com/hashicorp/levant: cannot load github.com/hashicorp/consul/api: ambiguous import: found github.com/hashicorp/consul/api in multiple…

milenao
- 707
- 1
- 6
- 8
0
votes
1 answer
How can I go get this Kubernetes package - unknown revision
How can I go get this kubernetes package.
I have tried the following
go get k8s.io/kubernetes/pkg/serviceaccount
but I get the error
go: k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown…

James Franco
- 4,516
- 10
- 38
- 80
0
votes
0 answers
go get a private repo from aws code commit
fatal: unable to connect to git-codecommit.ap-south-1.amazonaws.com:
git-codecommit.ap-south-1.amazonaws.com[]: errno=Connection refused
git config --global url."ssh://git-codecommit.ap-south-1.amazonaws.com/".insteadOf…

Bala
- 11
- 2
0
votes
0 answers
Golang unable to download private dependencies
My project have some dependencies on my companies private gitlab repository. They are basically sub modules.
Structure is like as below
code.company.com/project/modules/
module1 - git repository
module2 - git repository
module2 - git repository
I…

Ashish
- 39
- 1
0
votes
2 answers
go get : There is no tracking information for the current branch
When I type in the command go get -u github.com/ndelphit/apkurlgrep
I get the error
There is no tracking information for the current branch. Please
specify which branch you want to merge with. See git-pull(1) for
details
git pull …

Ferdinand
- 513
- 1
- 3
- 9
0
votes
0 answers
[Windows]go get github.com/gin-gonic/gin failed with connectex: A connection attempt failed
Code:
package main
import "github.com/gin-gonic/gin"
func main() {
r := gin.Default()
r.Handle("GET", "/ping", func(context *gin.Context) {
context.JSON(200, gin.H{
"message": "pong",
})
})
r.Run()…

lubanseven
- 1
- 1
0
votes
3 answers
go get can't get a module from a private repo on github
I have a (private) github repo with a Go module. I've added the tag v0.1 and github shows that tag. I have set go env -w GOPRIVATE=github.com/dwschulze/key-value-mod and my ~/.gitconfig has [url "git@github.com:"] insteadOf =…

Dean Schulze
- 9,633
- 24
- 100
- 165
0
votes
1 answer
Why does “go get” sometimes retrieve an outdated commit?
I have created a Go module and put it at github.com/bronger/abcde. Erroneously, I declared it in its go.mod as module abcde. Therefore, a go get github.com/bronger/abcde in a Dockerfile (i.e. without my local copy of the program) fails with
#10…

Torsten Bronger
- 9,899
- 7
- 34
- 41
0
votes
1 answer
go get not downloading a module under a repository from BitBucket
In have a git repo in bitbucket.org
reponame/
.git/
integration1/
integration2/
integration-common/
└── util
├── go.mod
└── readascii.go
The module directory is a subdirectory of the git repository. The…

Dean Schulze
- 9,633
- 24
- 100
- 165
0
votes
2 answers
go get fails for hashicorp/levant
I inherited a build script that builds a docker image and uses hashicorp/levant library to deploy. For a year or so we have been running go get github.com/jrasell/levant to grab the levant library. In past few days, the repo URL was merged under…

personalt
- 810
- 3
- 13
- 26
0
votes
1 answer
go build does not compile local changes into main
I am relatively new to go, and I am having some trouble with the go build system.
GO Environment:
(base) ngadre-mbp:github.com ngadre$ go version
go version go1.14.5 darwin/amd64
(base) ngadre-mbp:github.com ngadre$ go…

RootPhoenix
- 1,626
- 1
- 22
- 40
0
votes
1 answer
Go get not working though windows cmd/powershell but only git bash
I have set up git and got it in my windows system. I have ssh key with passphrase. When I get in git bash it asks my passphrase and fetches properly but when I do it in cmd or powershell it throws an error.
Cloning into…

Divanshu Aggarwal
- 416
- 6
- 13
0
votes
1 answer
go get -u github.com/onsi/ginkgo/ginkgo starts throwing error all of a sudden
When I run go get -u github.com/onsi/ginkgo/ginkgo
till yesterday I had no issues. Specifically with fsnotify the output was like below
00:52:08 go: downloading gopkg.in/fsnotify.v1 v1.4.7
00:52:08 go: extracting gopkg.in/tomb.v1…

ambikanair
- 4,004
- 11
- 43
- 83
0
votes
3 answers
Right way to get dependencies from private repository
I have private bitbucket repo on http://localhost:7990 clone link http://localhost:7990/scm/gom/bar.git
go.mod looks like:
module mod.org/bar
go 1.13
References available in a remote repository:
git ls-remote http://localhost:7990/scm/gom/bar.git…

kozmo
- 4,024
- 3
- 30
- 48
0
votes
1 answer
Force `go get` and `go install` to use cache even if it's ancient
Is there a flag for go get or go install to force those to use the cache, even if the cache is very old / ancient? We are using docker images / multi-stage build to cache deps, and those original files might be weeks or months old.
user12374570