-
Notifications
You must be signed in to change notification settings - Fork 55
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
Update Go version to 1.20 #171
Conversation
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.
Per discussion, I'm okay with this update (though I have a question below about testing on two versions). But it'd be good to run this past @niemeyer as there are other teams that use Pebble now.
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.
Thanks or the PR, Jordan. A few questions below.
Considering we're now shipping Pebble binaries (which are built with Go 1.20 as well), I don't know if we still need to support old Go versions? |
- [ci] update actions/setup-go to v3 - [ci] get go version from go.mod
I spoke with @niemeyer today about this PR. It looks like Juju is now building using @barrettj12 Before we consider making a change like this, we need to make sure that we're not going to affect any of our downstream consumers, which I think is the piece that was missing from your original PR :) So...
If we're all good on those fronts, then we can go ahead and merge this -- we're fine to live with a deprecation warning if we need to - the features won't go away until go2 in all likelihood - and we can reassess at that point. @hpidcock / @benhoyt - feel free to merge once we get confirmation from the others :) |
@jnsgruk @barrettj12 Our project selected Go 1.20 as the starting point, so I think this proposal aligns well with us. Thanks for checking. Should we update the PR title to reflect Go 1.20 (I assume this is the latest proposal)? |
@jnsgruk as far as Rockcraft goes, we should be fine - even before we moved to the snap we used go 1.19 to build locally. |
💯 The latest stable Go snap is also 1.20, which is what we use to build the Pebble snap: Lines 35 to 36 in 0906a62
Maybe it'll be good to pinpoint that Go snap version in Pebble's snapcraft.yaml -> #271 |
You forgot about us! We use |
Sorry about that @sparkiegeek! You'll be on the list for next time, for sure. Adam and I spoke briefly offline, and they can quite easily move to using the go snap for building, so this won't materialise as much of a problem. |
Go 1.14 has been end-of-life for years, and now we're running into problems like not supporting
io.ReadAll
. Time to update it.In our GitHub CI tests, I upgraded
actions/setup-go
to v3, and now we can get the Go version fromgo.mod
.