Questions tagged [godeps]

Godep(Godeps) helps build packages reproducibly by fixing their dependencies. Now deprecated, use `dep` instead.

Godep(Godeps) helps build packages reproducibly by fixing their dependencies.

Now deprecated, use dep instead.

https://github.com/tools/godep

64 questions
2
votes
1 answer

Godep not working in docker container

I am new to dockers and trying to make a docker container for a simple Go application. I am using Godep for dependency management. Here is my Dockerfile: FROM pottava/golang:1.5 RUN go get github.com/tools/godep \ && rm -rf /go/pkg…
desi Joe
  • 363
  • 5
  • 18
2
votes
1 answer

Error using Godep on Travis CI automated build for tip version of Go

I'm using Travis CI to automate builds and tests on my Go project. The ./Godeps/Godeps.json looks like this : { "ImportPath": "github.com/my_project_path", "GoVersion": "go1.5", "Packages": [ "./..." ], "Deps": [ …
2
votes
1 answer

Advice on vendoring dependencies in Go

I am working on a project that requires some dependencies. I am a little confused by the best practices regarding vendoring. Currently I am using GO15VENDOREXPERIMENT and have copied the dependencies into the vendor…
Jeffrey Ellin
  • 586
  • 1
  • 3
  • 17
2
votes
1 answer

Godep with local packages

I have a repository that looks like this: src | |--myplace |--myprojectRepo |--someCmd | main.go |--somePackage | package.go I'm trying to use Godeps to manage dependencies. However, when I run godep save…
Andy
  • 44,610
  • 13
  • 70
  • 69
1
vote
0 answers

golang dep add says " is already imported or required, so -add is only valid with a constraint", what does it means?

I'm trying to add a dependency to the vendor directory and I'm getting this really strange error: dep ensure -add github.com/google/uuid And the error says: github.com/google/uuid is already imported or required, so -add is only valid with a…
Alexis Wilke
  • 19,179
  • 10
  • 84
  • 156
1
vote
2 answers

How to use Go dep with GitLab subgroups

I have a Go project that requires some dependencies from a private GitLab repository like git.mydomain.com/myteam/category/subcategory/project.git. But I'm getting this error. ensure Solve(): remote repository at…
srimaln91
  • 1,176
  • 10
  • 21
1
vote
1 answer

How to use go module as dependency in go dep project?

I have Go dep project. I want to use go module as dependency. For example. I need this one https://github.com/pion/webrtc. So, I try to declare the dependency like this, in Gopkg.toml: [[constraint]] name = "github.com/pion/webrtc" revision =…
Max
  • 1,803
  • 3
  • 25
  • 39
1
vote
1 answer

How to get dep ensure to remove unused Go files, dependencies or packages

When adding new dependencies using dep ensure -add I see dep adding the complete repository of the package, instead of just the parts I require. For example I added aws-sdk-go and dep ensure put 87MB of files into my vendors folder, even…
Nic
  • 12,220
  • 20
  • 77
  • 105
1
vote
1 answer

go build can't find package sources

I'm trying to build the teamcity prometheus exporter I found in this repo. In the readme it instructs me to execute the following command which should build the project - docker run --rm -v "$PWD":/go/src/github.com/guidewire/teamcity_exporter -w…
Yaron Idan
  • 6,207
  • 5
  • 44
  • 66
1
vote
0 answers

Ignore and prevent vendored package from being delete with go dep?

I have a bit of an issue, I have a Go project that I depend on (DPkg) and this project has some small dependency on another package (TPkg). For some reasons which is irrelevant to the question I am not able to build TPkg at the moment however I know…
Alexandre Thenorio
  • 2,288
  • 3
  • 31
  • 50
1
vote
1 answer

dep ensure removing the install folders

I have installed the httprouter package using the following command dep ensure -add github.com/julienschmidt/httprouter vendor └── github.com ├── julienschmidt │ └── httprouter Then I have installed the uuid…
R.Roshan
  • 199
  • 4
  • 14
1
vote
1 answer

godep save never works

When trying to run godep save, I'm always getting the following error: godep: [WARNING]: godep should only be used inside a valid go package directory and godep: [WARNING]: may not function correctly. You are probably outside of your $GOPATH. godep:…
Welton122
  • 1,101
  • 2
  • 13
  • 28
1
vote
3 answers

Golang internal dependency management

In the company I work at, we have several backend systems written in Go and some of the code is shared between them. The backend systems need to be deployed separately, potentially on different machines. All of these projects are still under active…
e.nikolov
  • 127
  • 1
  • 11
1
vote
1 answer

How can I fix "go get ./..." when installing dependencies?

When I type "go get ./..." I get back: ./main.go:191: undefined: sendgrid.NewSendGridClientWithApiKey ./main.go:192: undefined: sendgrid.NewMail ./main.go:222: undefined: sendgrid.NewSendGridClientWithApiKey ./main.go:223: undefined:…
Mee
  • 139
  • 2
  • 9
1
vote
0 answers

Change godep to a previous version

I am trying to revert my godep to a previous version. I need v52 but go installed the latest v74 when I ran go get godep. I tried replacing the godep binary in $GOPATH/bin. And go is picking it up. But the problem is when I try to run godep like…
Sakib
  • 1,503
  • 4
  • 26
  • 39