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
{{ message }}
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
When using vendoring in Go 1.6, reflection is in gob.Register to create
a key for type lookups. This reflect.PkgPath() call returns a "globally
unique" key for looking up types, and in the case of a vendored type, is
not valid for matching gob registration names. This is because on the
server side, the type is registered as import/path.(typename), but on
the client side (vendored) it looks like client/vendor/import/path.(typename). Using fixed keys bypasses the
need for reflection and is safe on either side, even when using
vendoring.
The text was updated successfully, but these errors were encountered:
When using vendoring in Go 1.6, reflection is in gob.Register to create
a key for type lookups. This
reflect.PkgPath()
call returns a "globallyunique" key for looking up types, and in the case of a vendored type, is
not valid for matching gob registration names. This is because on the
server side, the type is registered as
import/path.(typename)
, but onthe client side (vendored) it looks like
client/vendor/import/path.(typename)
. Using fixed keys bypasses theneed for reflection and is safe on either side, even when using
vendoring.
The text was updated successfully, but these errors were encountered: