Package not found #517
Comments
if I manually do, go get: it works! - Is this still a bug or an operator error on my part? |
Hey @ajayamohan, how did you install godep? Did you compile it yourself? This looks like you are missing a dependency for godep itself, and the go get workaround you submitted seems to be pulling the dependency and dropping it in your $GOPATH. Which will of course allow godep to build properly. |
Hi @kris-nova,
Ajith |
Okay thanks - will re-create today and get back to you. Cheers |
Hey @ajayamohan, This looks like you ran into the problem while installing go-kit? Is that right?
If so can we open up a new bug in go-kit for this? I think I see the problem, but I want to make sure it gets tracked correctly. Also, if that is the case can we get detailed step-by-step reproduction steps on the go-kit issue? Thanks :) |
Getting a similar error here:
I'm new to go, not sure if related. |
@PandaWhisperer - These are all go dependency errors - how did you install your application, and what are your replication steps? |
@kris-nova just like the documentation said – |
This happened to me recently because the version of $ go version
go version go1.7.3 darwin/amd64
$ godep version
godep v74 (darwin/amd64/go1.7.1) I had it installed via Homebrew. Solution was to |
@kris-nova Figured it out! I cloned a repo using 'go get' and then did 'godep save' |
I tried that, and eventually ran into this roadblock:
|
It's probably looking at the |
Starting from a fresh installation of go 1.8.1 and an empty go workspace:
|
@rdixonbhw Thanks! That got me past that difficulty. |
Next up:
|
Found that referenced in client-go's Godeps, with a commit ID. Checking out that commit got me past that one. |
Fought through tools/godep#517 to victory.
I wrote a small missing_package="start"
while [ "$missing_package" != "" ]
do
missing_package=$(godep save 2>&1 | \
egrep '^godep: Package (.*) not found' | \
sed 's/.*(\(.*\)).*/\1/');
[ "$missing_package" != "" ] && {
echo "Installing missing package: ${missing_package}" ;
go get -u "${missing_package}"
}
done
godep save |
@carlosonunez , thank you. That script worked for me. Although I had to add
|
No problem! I'm glad I could help.
…Sent from my iPhone
On Jun 20, 2017, at 20:10, 1138-4EB ***@***.***> wrote:
@carlosonunez , thank you. That script worked for me. Although I had to add ./... to godep save:
godep_save() {
missing_package="start"
while [ "$missing_package" != "" ]
do
missing_package=$(godep save $@ 2>&1 | \
egrep '^godep: Package (.*) not found' | \
sed 's/.*(\(.*\)).*/\1/');
[ "$missing_package" != "" ] && {
echo "Installing missing package: ${missing_package}" ;
go get -u "${missing_package}"
}
done
godep save $@
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
I am getting this error. How can I proceed to solve this now ? go get github.com/tools/godep |
@Sikandarkhan: that is a basic issue about using the go tools. See https://golang.org/doc/code.html |
Any workaround to allow me to do "godep save ./..."? I hit the error |
@PandaWhisperer do you solve the problem, i have a same one |
I am closing this issue because the repo is going to be archived. |
It worked again for me after removing and reinstalling godep. Likely a mismatch of verions of go and godep after my MacOS upgrade. |
Expected behavior
godep save
identifies all dependencies in a new project and saves the json in the GoDeps folder to be createdActual behavior
Fails with error -
$godep save ./... godep: Package (github.com/kr/logfmt) not found
Steps to reproduce behavior
$godep versiongodep version
outputgodep v74 (darwin/amd64/go1.7)
$godep versiongo version
outputgodep v74 (darwin/amd64/go1.7)
Contents of Godeps.json file
The text was updated successfully, but these errors were encountered: