-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot find package "foo" #44
Comments
When you say That looks like an issue with how go-pry looks for pry.Pry() statements. It doesn't follow dependencies, just parses all go files recursively. With lots of vendor packages, that runs into issues if there's invalid go code. |
The thing is, my app doesn't have a dependency called foo anywhere. You can
see my import list here, https://github.com/komuW/meli/blob/master/main.go
I'm neither importing foo nor importing another package with foo as
placeholder
…On Sep 30, 2017 10:31 PM, "Tristan Rice" ***@***.***> wrote:
When you say cannot find package "foo", is the package name literally foo?
Or is that just a placeholder?
That looks like an issue with how go-pry looks for pry.Pry() statements.
It doesn't follow dependencies, just parses all go files recursively. With
lots of vendor packages, that runs into issues if there's invalid go code.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#44 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE7LUSd9dk9GBsU_VcLVG9kP1lVpLRDxks5snpcYgaJpZM4PpdmD>
.
|
You import docker which gets added to the vendor folder and docker is importing |
merging #45 was probably a good move. However, it now means that you cant use go-pry in a project where you are depending on dependencies that are in your vendor directory. so I guess it is a tradeoff |
Like, you can't insert pry.Pry() statements in the vendored dependencies? Yeah, hmm... That's kind of the same issue as #19. |
no, I meant you cant insert pry.Pry() statements in your main package if that package main depends on dependencies in your vendor directory |
I just tested it and it seems to work just fine. That change just makes it so it doesn't look for pry.Pry() statements in the vendor folder. You can still import vendored dependencies. |
ok, cool. my bad |
I'm trying to use go-pry to debug this golang project-> https://github.com/komuw/meli
But go-pry is panicking with a weird error, reproduced below:
I'm using dep(https://github.com/golang/dep) as my dependency management tool
The text was updated successfully, but these errors were encountered: