-
Notifications
You must be signed in to change notification settings - Fork 570
compiler: vendor golang.org/x/tools/go/gcimporter15 #789
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
Conversation
As of 5dfd8930f264888dd5fe26820a0ac605a384dd33 golang.org/x/tools/go/gcimporter15 has been removed (in line with a promise to remove this old API). This CL vendors a copy of golang.org/x/tools/go/gcimporter15 as of 14d5b80f954f510ba9bcd241821b6f4828498e1a (5dfd8930f264888dd5fe26820a0ac605a384dd33~1) minus *_test.go files and the testdata directory (which contained binary files). This is effectively a sticking plaster until we migrate, per the deprecation notice, to golang.org/x/tools/go/gcexportdata. Fixes gopherjs#788
172f8c0 to
2b066ec
Compare
dmitshur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
|
Thanks @shurcooL Please can either you or @hajimehoshi merge this assuming you're happy? Which reminds me: we still need to sort out my Github permissions for this repo! |
|
+1 holding our breath downstream :) |
hajimehoshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm :-)
This is a follow up to gopherjs#789 that removes the sticking plaster in that PR, and switches the compiler to using golang.org/x/tools/go/gcexportdata as directed here https://github.com/golang/tools/blob/14d5b80f954f510ba9bcd241821b6f4828498e1a/go/gcimporter15/gcimporter.go#L13-L14. This means we can also remove the temporary vendor of gcimporter15.
This is a follow up to gopherjs#789 that removes the sticking plaster in that PR, and switches the compiler to using golang.org/x/tools/go/gcexportdata as directed here https://github.com/golang/tools/blob/14d5b80f954f510ba9bcd241821b6f4828498e1a/go/gcimporter15/gcimporter.go#L13-L14. This means we can also remove the temporary vendor of gcimporter15.
This is a follow up to gopherjs#789 that removes the sticking plaster in that PR, and switches the compiler to using golang.org/x/tools/go/gcexportdata as directed here https://github.com/golang/tools/blob/14d5b80f954f510ba9bcd241821b6f4828498e1a/go/gcimporter15/gcimporter.go#L13-L14. This means we can also remove the temporary vendor of gcimporter15.
This is a follow up to gopherjs#789 that removes the sticking plaster in that PR, and switches the compiler to using golang.org/x/tools/go/gcexportdata as directed here https://github.com/golang/tools/blob/14d5b80f954f510ba9bcd241821b6f4828498e1a/go/gcimporter15/gcimporter.go#L13-L14. This means we can also remove the temporary vendor of gcimporter15. However we instead vendor golang.org/x/tools/go/gcexportdata and golang.org/x/tools/go/internal/gcimporter to avoid hassle for people upgrading to this version of GopherJS. We do this as of https://github.com/golang/tools/tree/94b14834a20132093826ea5e2da5502a13908ad3, minus *_test.go files and testdata directories.
This is a follow up to gopherjs#789 that removes the sticking plaster in that PR, and switches the compiler to using golang.org/x/tools/go/gcexportdata as directed here https://github.com/golang/tools/blob/14d5b80f954f510ba9bcd241821b6f4828498e1a/go/gcimporter15/gcimporter.go#L13-L14. This means we can also remove the temporary vendor of gcimporter15.
This change updates compiler to use new package gcexportdata instead of the deprecated and removed package gcimporter15 for reading and writing export data files containing type information. See its deprecation note here: https://github.com/golang/tools/blob/14d5b80f954f510ba9bcd241821b6f4828498e1a/go/gcimporter15/gcimporter.go#L13-L14 Remove vendored copy of gcimporter15, since it's no longer used. Updates #789.
As of https://github.com/golang/tools/tree/5dfd8930f264888dd5fe26820a0ac605a384dd33
golang.org/x/tools/go/gcimporter15 has been removed (in line with a
promise to remove this old API). This CL vendors a copy of
golang.org/x/tools/go/gcimporter15 as of
https://github.com/golang/tools/tree/14d5b80f954f510ba9bcd241821b6f4828498e1a
(5dfd8930f264888dd5fe26820a0ac605a384dd33~1) minus *_test.go files and
the testdata directory (which contained binary files).
This is effectively a sticking plaster until we migrate, per the
deprecation notice, to golang.org/x/tools/go/gcexportdata.
Fixes #788