Skip to content

vendor: vendor go/types to workaround bug in method set calc. #811

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

Closed
wants to merge 2 commits into from

Conversation

myitcv
Copy link
Member

@myitcv myitcv commented May 1, 2018

Per golang/go#25008 (comment) the
fix for method set calculation will not be back ported to Go 1.10.
Instead gri suggests we vendor the latest version of go/types. This PR
does just that. It is effectively a temporary sticking plaster until Go
1.11 lands, or more specifically until we release GopherJS for Go 1.11.

In order to successfully vendor go/types, however, we need to move
compiler/vendor to the repo root (because build also uses go/types). And
because golang.org/x/tools/go/gcexportdata and
golang.org/x/tools/go/types/typeutil also reference go/types we need to
vendor them as well.

vendor/vendor.json is updated using govendor, with the one exception
being a manual addition for go/types (govendor doesn't appear to
understand how to vendor a standard library package).

Fixes #808.

Per golang/go#25008 (comment) the
fix for method set calculation will not be back ported to Go 1.10.
Instead gri suggests we vendor the latest version of go/types. This PR
does just that. It is effectively a temporary sticking plaster until Go
1.11 lands, or more specifically until we release GopherJS for Go 1.11.

In order to successfully vendor go/types, however, we need to move
compiler/vendor to the repo root (because build also uses go/types). And
because golang.org/x/tools/go/gcexportdata and
golang.org/x/tools/go/types/typeutil also reference go/types we need to
vendor them as well.

vendor/vendor.json is updated using govendor, with the one exception
being a manual addition for go/types (govendor doesn't appear to
understand how to vendor a standard library package).

Fixes gopherjs#808.
Copy link
Member

@hajimehoshi hajimehoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nevkontakte
Copy link
Member

Closing this pull request, since we are long past Go 1.11 and the upstream fix is available to us.

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

Successfully merging this pull request may close these issues.

Interface "missing methods"
3 participants