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
46
votes
3 answers

How do I migrate from Dep to Go Modules

I'm currently using Dep and would like to start using Go modules. How do I migrate?
Nic
  • 12,220
  • 20
  • 77
  • 105
10
votes
2 answers

Cannot do any go command anymore

Before it happened, what I am doing is trying to use the dep to manage my golang code dependency. What I found right now is I cannot do any command with go, even if I try to uninstall it with brew by brew uninstall go and do brew install go again.…
Mirza
  • 281
  • 1
  • 4
  • 14
7
votes
1 answer

Caveats if go package name doesn't start with github.com?

I've recently started using go and planned to use following directory structure for my code: src/mycompany.com/project (so package name would be mycompany.com/project/component), however during code review my coworker (who worked with go before)…
yname
  • 2,189
  • 13
  • 23
7
votes
1 answer

how to update the vendor folder for https://github.com/hashicorp/terraform.git for terraform

Hi i am following steps given for hashicorp/terraform and performed below activity # Get latest master branch's dependencies staged in local $GOPATH git checkout master git pull godep restore -v # Make your way to the dependency in question and…
Sam
  • 1,333
  • 5
  • 23
  • 36
6
votes
0 answers

Go build not finding vendor packages ensured with dep

I'm running into an error where vendor packages are not being correctly resolved by go; on macOS High Sierra 10.13.6. I'll use github.com/gorilla/mux as an example package $ echo $GOPATH /Users/gregorysims/go $ go version go version go1.11…
Gregory Sims
  • 511
  • 7
  • 18
5
votes
1 answer

Golang Dep unable to read metadata: go-import metadata not found

I am transitioning over to use golang Dep https://github.com/golang/dep We have repositories for microservices that use a common code base. Its hosted at git.corp.company.com/Organization/common-base in vendor base we have a projects structure as…
Sakib
  • 1,503
  • 4
  • 26
  • 39
4
votes
1 answer

Not in any GOPATH while using dep init

I'm trying to use godep to install my dependencies but I can't seem to get it to work. When I run GODEP init, I get the following error determineProjectRoot: /home/cjds/development/core/data-service not in any $GOPATH But my GOPATH definitely…
cjds
  • 8,268
  • 10
  • 49
  • 84
4
votes
1 answer

Dependencies for Go app aren't installed through godep on Heroku

I want to deploy Go application on Heroku, but I got an error like this: remote: -----> Go app detected remote: -----> Checking Godeps/Godeps.json file. remote: -----> Using go1.6.3 remote: !! Installing package '.' (default) remote: !! …
Kohei Mikami
  • 2,850
  • 24
  • 21
3
votes
1 answer

Set Go variable with ldflags conflicts with vendor folder

I'm currently developing a small Go app and I want to set a specific variable (like Version, GitCommit, BuildID...etc.) at build or runtime (with go build or go run) by using the -ldflags option. Because in my company we have several projects with…
Lebowski
  • 588
  • 7
  • 21
3
votes
1 answer

Godeps development flow?

Bit confused with Godeps in general. Say I'm contributing Go code to a central repository, and now I need to pull the code and contribute my own code changes. What would be the correct godep flow? Would it be: git pull // pull latest master godep…
r123454321
  • 3,323
  • 11
  • 44
  • 63
2
votes
1 answer

Golang dep unable to resolve dependencies

I am using kubebuilder to create kubernetes operator project. After running the project init command described in quickstart guide kubebuilder init --domain k8s.io --license apache2 --owner "The Kubernetes Authors" dep ensure returns with error log…
captainchhala
  • 831
  • 1
  • 7
  • 14
2
votes
1 answer

same vendor code from multiple packages

I'm trying to use grpc "google.golang.org/grpc" package. import ( "github.com/xxxx/yyyy" "google.golang.org/grpc" ) conn, err := grpc.Dial(address) pppp.NewXXXXClient(conn) // where pppp is from github.com/xxxx/yyyy What happens if…
leopoodle
  • 2,110
  • 7
  • 24
  • 36
2
votes
1 answer

Go package dependencies with go dep

I have the following project structure in the same github…
Marco Talento
  • 2,335
  • 2
  • 19
  • 31
2
votes
0 answers

Godep cant find gin when pushing go project to PCF-dev

Yesterday my app was pushing fine. When I came back today to push I am having issues where godeps can't find certain dependencies. Im able to godep go install just fine on my local machine, which leads me to believe this is a PCF issue of some…
codewizard
  • 1,029
  • 1
  • 13
  • 22
2
votes
1 answer

How to add a package to godeps

I Already have a existing project in github and have deps json file stored in Godeps folder and dependency packages in vendor folder. Now I need a way to add a new package to the list without effecting anything to the existing json file and vendor…
Manjunath Kumatagi
  • 361
  • 1
  • 4
  • 11
1
2 3 4 5