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
2 answers
Using a particular version for golang dependency module
I'm trying to build postfix-exporter code from the github link.
It has a dependency on the go-systemd package as mentioned in go.mod file github.com/coreos/go-systemd/v22 v22.0.0.
I see in the go.mod file , the mentioned version for the package is…

Learner
- 1,544
- 8
- 29
- 55
-2
votes
1 answer
main.go not able to find the package
Actually I want to use c4 to generate the c4 id for the video files, So I found the below repo which is developed to do this thing, So I clone this repo
https://github.com/Avalanche-io/c4/tree/v0.7.0
Now as suggested in this answer from stack…

Vinay Kumar
- 674
- 2
- 9
- 21
-2
votes
1 answer
package: cannot download, http://*.com/*/*.git uses insecure protocol
I'm trying to run go get -u -v in my application repository, but I'm receiving an error:
$ go get -u -v
package */*/*: cannot download, http://*.com/*/*.git uses insecure protocol
The self-hosted Git repository runs with http, not https. How to…

Megidd
- 7,089
- 6
- 65
- 142
-2
votes
1 answer
How to organise your Go project in the right way?
I have problems setting up my first go project. I want to keep my packages out of my git repository.
go get installs my packages by default in my /src folder. This way I can't simply ignore a folder to ignore all packages.
Can I install all my…

thiloilg
- 1,733
- 2
- 18
- 23
-2
votes
3 answers
How to install go package after downloading?
I ran this:
cd $GOPATH && go get -u github.com/zricethezav/gitleaks
perplexingly, I now have this:
$GOPATH/
src/
github.com/
gitleaks/
but there is not a bin/ folder ... I would have expected to see the bin folder here: …
user7898461