Skip to content
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.mod to require Go 1.21 #3581

Merged

Conversation

grobinson-grafana
Copy link
Contributor

@grobinson-grafana grobinson-grafana commented Nov 1, 2023

I would like to propose we update the minimum Go version to 1.21. Go 1.20 and 1.21 have a number of useful additions to the built-in packages. For example, I would like to use strings.ContainsFunc here.

If we don't want to remove Go 1.18 and Go 1.19 support for the time being then that's fine too! I just thought I would see if this is an option before inlining the function to make it work on Go versions 1.19 and older.

Signed-off-by: George Robinson <[email protected]>
Signed-off-by: George Robinson <[email protected]>
Signed-off-by: George Robinson <[email protected]>
Signed-off-by: George Robinson <[email protected]>
Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

Oh I guess you need to upgrade the circleci/go orb to 1.9.0.

Signed-off-by: George Robinson <[email protected]>
Signed-off-by: George Robinson <[email protected]>
@simonpasquier simonpasquier merged commit ce6efba into prometheus:main Nov 6, 2023
11 checks passed
grobinson-grafana added a commit to grobinson-grafana/alertmanager that referenced this pull request Nov 9, 2023
* Update circleci/go to 1.9.0

---------

Signed-off-by: George Robinson <[email protected]>
@grobinson-grafana grobinson-grafana deleted the grobinson/require-go-1-21 branch April 16, 2024 14:44
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.

2 participants