You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current behavior is correct. reflect must return a globally unique identifier. It's not guaranteed that you can write a program using PkgPath directly. For vendoring, you can't. You have to remove the .../vendor/ part and you have to make sure the source you put the import in is in the right subtree.
What version of Go are you using (go version)?
go version go1.5beta3 linux/amd64
What operating system and processor architecture are you using?
Ubuntu Precise 64 bit
What did you do?
I ran
PkgPath
on areflect.Type
in a vendored package: https://gist.github.com/rgarcia/f0c6507fbd1327d59bcf(larger context: trying to solve golang/mock#4)
What did you expect to see?
A path string that does not include the "vendor" component.
What did you see instead?
A path string that includes "vendor" (and thus cannot be used as an actual import due to "must be imported as..." compiler error).
The text was updated successfully, but these errors were encountered: