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
0
votes
1 answer

'GoDep' is not recognized as an internal or external command

I am trying to deploy my Go App on heroku, for which I am using Godep as build pack. After installing godep using the command go get github.com/tools/godep when I try to run godep save I am getting the error which states that 'godep' is not…
Code_Yoga
  • 2,968
  • 6
  • 30
  • 49
0
votes
1 answer

godep save ./... gives an error - godep: Unable to find SrcRoot for package

When I run godep save ./... from the root directory of the project I'm getting the following error. Any clues what might I have to fix? godep: Unable to find SrcRoot for package .
Pubudu
  • 478
  • 1
  • 6
  • 22
0
votes
1 answer

go dep and go generate

How can I add go dependencies that are auto-generated? I have a protobuf-repository with a single go-file in its root, which contains the following: //go:generate ./scripts/generate_go_sources.sh package protobuf The mentioned script goes…
maja
  • 17,250
  • 17
  • 82
  • 125
0
votes
1 answer

When build beego docker image with default docker file, show error: `godep: No Godeps found (or in any parent directory)`

I'm new to Go & Beego. When I build docker image with beego's default docker file, it shows this error : godep: No Godeps found (or in any parent directory) The build info is: Sending build context to Docker daemon 13.6MB Step 1/9 : FROM…
Bruce
  • 1,718
  • 20
  • 15
0
votes
0 answers

cannot find vendor package in windows

I have my GOPATH and GOROOT set, currently trying to use a package located in the vendor folder, while doing go run in my windows I get C:\resume>go run docs/generator.go docs\generator.go:13:2: cannot find package "github.com/tidwall/gjson" in any…
ss22ever
  • 59
  • 1
  • 1
  • 8
0
votes
1 answer

Golang dependency management on windows does not work (GOPATH error)

I try to use to different dependency management tools: godep and dep. And both fail with similar error. How should i set enviroument and where should I put sources? dep PS D:\Work\Golang\src\ChrBack> dep init root project import:…
SeeSharp
  • 1,730
  • 11
  • 31
0
votes
0 answers

How to add referencdes between subprojects

This is the structure of my project: src + github.com + myproject + services + utils + nonce.go + myservice + main.go As you can see, myproject consists of two…
j3d
  • 9,492
  • 22
  • 88
  • 172
0
votes
1 answer

Dep xxx restored, but was unable to load it with error: Package xxx not found

I have a golang app inside my-app (cloned git repo). The folder myapp is on the same place as my Dockerfile. I copy my project in it. Here is my dockerfile: FROM golang:1.7 RUN go get github.com/tools/godep ADD priv/.netrc /root/.netrc WORKDIR…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210
0
votes
1 answer

godep doesnt install required packages

I'm trying to run the application (written in Go) inside docker. To install dependencies I'm using godep. When executing godep inside docker, following error is received docker run -ti --rm -v $PWD:/go/src/app -p3000:3000 golang bash …
Sheshank Kodam
  • 515
  • 5
  • 17
0
votes
2 answers

How to make sure go build is using all dependencies from vendor directory

I have used godep and vendored all my dependencies in vendor/ directory. Go build is working fine as well. However how can I be sure that all my dependencies are vendored? Is there any command that can make sure of that?
Mayank Patel
  • 8,088
  • 5
  • 55
  • 75
0
votes
1 answer

Force godep to pull packages from github over SSH in circle build

We have go packages in separate repos to the package being built in circle. We have setup the build with a github user key (https://circleci.com/docs/github-security-ssh-keys/) so that it can access the private repos that contain the dependencies. …
Myles McDonnell
  • 12,943
  • 17
  • 66
  • 116
0
votes
1 answer

golang + Godeps: Adding new dependency override Godeps.json file

I'm using Godeps to save my dependencies with my go project. For now my Godeps.json file looks like this: { "ImportPath": "github.com/some/repo", "GoVersion": "go1.6", "GodepVersion": "v74", "Packages": [ "gopkg.in/mgo.v2", …
Shikloshi
  • 3,761
  • 7
  • 32
  • 58
0
votes
1 answer

Godep save deletes all deps in vendor and godep update

Im pretty new to Go but not to software. Im working on a new team with lots of projects and dependencies so we must use godep. All the code is structure in the standard Go way, with files in $GOPATH/.../github.com/... etc (including our work which…
Thomas
  • 8,306
  • 8
  • 53
  • 92
0
votes
2 answers

Failed to update vendor deps via godep update ... command and godep save -r ./

I have latest deps available in my $GOPATH. Now i want to update my project Godeps.json with new deps(with latest GOPATH) by calling godep update ./... and then calling godep save ./... . however still I am with old deps in Godeps.json .
Sam
  • 1,333
  • 5
  • 23
  • 36
0
votes
0 answers

Writing an openshift extension

Trying to understand how one builds a tool consuming the Openshift Origin and Kubernetes APIs (I'm new to Go). It seems that I have a version of Kubernetes installed from Openshift and another version installed by godep and I'm getting all sorts of…
Danielle Madeley
  • 2,616
  • 1
  • 19
  • 26