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
2
votes
1 answer
Golang subproject or submodule dependency
What is the recommended way in Golang to download a submodule of a dependency? I think my question can be best described by examples.
Example #1:
I have a client and a server. My server is an API and has a bunch of other dependencies, such as…

Sarin Madarasmi
- 526
- 6
- 11
2
votes
0 answers
AWS codePipeline: go get: unknown revision v1.0.0
I have created an API using AWS SAM and Golang. This API is using an private module, both repos are present on codecommit. My buildspec.yml file is like this :
phases:
install:
commands:
- echo installing SAM ...
- pip install…

DEV
- 2,106
- 3
- 25
- 40
2
votes
1 answer
Go mod: not able to retrieve submodules for private repo
I have 3 go projects. Project A relies on a submodule of project B and module of project C
eg:
gitlab.com/myorg/myGroup/projectB/contract
gitlab.com/myorg/myGroup/projectC
When go mod tries to download the modules, module C is correctly downloaded…

Ben D
- 465
- 1
- 6
- 20
2
votes
1 answer
Pin version with go get
I 'd like to pin the version of one package, so whenever I run
go get -u ./...
..this package would stay unchanged (but the rest refreshed normally).

vbence
- 20,084
- 9
- 69
- 118
2
votes
1 answer
Use go get to require dependency from private github repo on WSL 2
I'm trying out WSL 2 on windows 10 and it's gone well so far, but I've been struggling for 2 weeks to make this work, because for some reason go get doesn't use or is not able to make the Git Credentials Manager to prompt for my credentials.
I…

Migdress
- 158
- 3
- 13
2
votes
2 answers
Go get is pulling the wrong repository
My module is gitlab.com/getsote/utilities/slogger
My repository is gitlab.com/getsote/utilities/slogger.git
When I run go get gitlab.com/getsote/utilities/slogger, I get the message below.
Scotts-Mac-mini:seeding syacko$ go get…

S. Yacko
- 386
- 4
- 14
2
votes
3 answers
In Docker, can't cd into directory installed with "go get"?
I'm trying to build a Docker container which downloads the source of https://github.com/micromdm/scep and using the go get command and cds into the resulting directory in order to perform some follow-up commands (namely, make deps, make build, and…

Kurt Peek
- 52,165
- 91
- 301
- 526
2
votes
1 answer
Does go get command do cache?
I trying to find if the go get command do cache or not but I don't find any information inside https://golang.org/cmd/go/.
I think there is no cache but I'm not sure.
Does go get do cache and if yes where is located ?

Jérôme
- 1,966
- 4
- 24
- 48
1
vote
1 answer
Unable to "go get" module from private github repo on centos 7
I am unable to "go get" module from private github repo
I getting following error message
go get
go: github.com/xxxxx/xxxxx-service@v0.0.0-20230419012042-5a43328285a5: invalid version: git ls-remote -q origin in…

Vishwanath Kumar
- 11
- 3
1
vote
1 answer
Go module is usable even after deleting the module repo from GitHub
I was learning go modules so I created a very basic module with an Add() function and published it on GitHub.
The repository was https://github.com/umermasood/nummanip (it throws 404) becaused I deleted the repo from GitHub.
But I am still able to…

M Umer Masood
- 51
- 5
1
vote
1 answer
installing telegram bot api package failed
I'm trying to install telegram bot api module for golang from this link:
https://github.com/go-telegram-bot-api/telegram-bot-api
the installation example that showed there isnt working and raises the next error:
cannot find package…

user16713791
- 59
- 3
1
vote
0 answers
How to go get github.com/fxamacker/cbor/v2 with Go 1.10?
I tried running go get -u github.com/fxamacker/cbor/v2, but I get this error:
package github.com/fxamacker/cbor/v2: cannot find package "github.com/fxamacker/cbor/v2" in any of:
/usr/local/go/src/github.com/fxamacker/cbor/v2 (from $GOROOT)
…

Shane Bishop
- 3,905
- 4
- 17
- 47
1
vote
2 answers
GOINSECURE to enable http downlaods on packages from Github
I'm developing a CLI app at work in order to automate a couple tedious tasks, to do this I need to install a couple packages like gotp. I noticed that installing this new package into my project this error pops up.
go get github.com/xlzd/gotp
go:…

Jeremy
- 1,447
- 20
- 40
1
vote
0 answers
I have an .exe file in Jfrog artifactory, how to use Go package manager to download that as a dependency using "go get" command
I have configured GOPROXY with artifactory URI and trying to use go get command to download the exe file from the repository.
Sample:
set GOPROXY=https://username:apikey@jfrog-artifactory.com/artifactory/go/virtual-go
go get…

Sanjay
- 11
- 1
1
vote
0 answers
Why I'm getting a 502 bad gateway error when installing go packages
I tried installing the golang.org/x/oauth2 and google.golang.org/api/vision/v1 packages by running
go get golang.org/x/oauth2
go get google.golang.org/api/vision/v1
but I get this error
go get: google.golang.org/api@v0.63.0…

wekesar
- 21
- 1
- 9