Skip to content

upgrade golang.org/x/tools to latest version #18

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

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

kujenga
Copy link
Contributor

@kujenga kujenga commented Oct 20, 2022

This commit resolves an issue where on Go 1.19, errors of the following form appear, when an internal package "xyz" would import from the standard library.

internal error: package "fmt" without types was imported from "xyz"

This problem was discussed in the Go issue tracker here as well: golang/go#37617

Closes #17

@@ -1,6 +1,15 @@
module github.com/BurntSushi/go-sumtype

go 1.17
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was set to an older Go version as it seemed unnecessary to pull it all the way up to Go 1.19, and the new behavior of Go 1.19 is to add this line as go 1.19 if it's unspecified. If you have opinions on setting it to something else, happy to update accordingly.

Copy link
Owner

Choose a reason for hiding this comment

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

I think 1.17 is "old enough" :-)

This commit resolves an issue where on Go 1.19, errors of the following
form appear, when an internal package "xyz" would import from the
standard library.

    internal error: package "fmt" without types was imported from "xyz"

This problem was discussed in the Go issue tracker here as well:
golang/go#37617

Closes BurntSushi#17
Copy link
Owner

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

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

Nice!

@@ -1,6 +1,15 @@
module github.com/BurntSushi/go-sumtype

go 1.17
Copy link
Owner

Choose a reason for hiding this comment

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

I think 1.17 is "old enough" :-)

@BurntSushi BurntSushi merged commit 480526a into BurntSushi:master Oct 20, 2022
@kujenga kujenga deleted the at/pkg-upgrade branch October 24, 2022 15:02
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.

internal error: package "encoding/json" without types was imported from "local package"
2 participants