Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Vendored code not being seen. #32

Closed
dstroot opened this issue Mar 23, 2016 · 7 comments
Closed

Vendored code not being seen. #32

dstroot opened this issue Mar 23, 2016 · 7 comments

Comments

@dstroot
Copy link

dstroot commented Mar 23, 2016

Cannot figure out how to get this to actually "see" I have my files vendored. The vendor directory is there, the imported code is there in the proper places and the go code compiles and runs cleanly.

image

How do I just turn this off so it can be usable to me?

@FrenchBen
Copy link

Same issue here - Since 1.6 update things have been pretty messy

@joefitzgerald
Copy link
Owner

The temporary workaround is to periodically run go install ./... from your package. The medium term solution is to have a package which does this for you and displays syntax/build issues, and to stop using gotype.

Medium term in this context is a couple days.

@FrenchBen
Copy link

The workaround is to install the packages as non-vendor packages?

@joefitzgerald
Copy link
Owner

No; go install ./... will respect the source location you won't find the vendored packages in $GOPATH/src as a result of running it; it simply compiles the current package's .a file(s) to $GOPATH/pkg.

@FrenchBen
Copy link

Thanks for the clarification. Read it as a get instead of install :(

@dstroot
Copy link
Author

dstroot commented Mar 23, 2016

Can confirm workaround works. Thanks!

@joefitzgerald
Copy link
Owner

This is fixed in go-plus 4.1.0 https://github.com/joefitzgerald/go-plus/releases/tag/v4.1.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants