-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/tools/go/loader: needs to be updated to stdlib go/types #11861
Comments
FYI, I have been testing this against golang/tools@1c460ff and d23973d. |
This is one of the unfortunate things about having two versions of the same packages. If this were to get fixed, then folks using the x/tools go/types would have breakage the other direction. |
We should be able to use build tags in x/tools to make this work. |
using a go-1.5 build tag sounds good. |
I agree this needs to happen, but we cannot change the tools repo until after Go 1.5 has been released and has settled for at least a while. My plan is to update the whole tools repo in early September so that it no longer uses tools/go/types (though of course that package will remain there). |
If build tags are used, there's no need to wait for Go 1.5. This is also not tied to the release. |
Fully one third of the ~350 *.go files in the tools repo import golang.org/x/tools/go/types. Are you suggesting that I make go1.5-tagged duplicates of all those files, and maintain them in parallel during several months of anticipated heavy churn? Or something else? |
I didn't realise it was that many files. Yeah, build tags seem inappropriate. Let's just do the change after the release. |
@adonovan, has that been done already, or not yet? If not, is there an updated estimate for when it'll happen? |
I (finally) sent https://go-review.googlesource.com/#/c/18207/ for review today. I'll submit it after the holiday since it will require that all clients using tip (not go1.5) update to |
This issue has been resolved via golang/tools@542ffc7 and can be closed. |
hi,
with the upcoming go-1.5 and the import of (a modified version of) the x/tools/go/types package into the stdlib,
golang.org/x/tools/go/loader
needs to be updated.the following program will fail to compile:
with the following error:
The text was updated successfully, but these errors were encountered: