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 to go 1.22 #1902

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Update to go 1.22 #1902

merged 1 commit into from
Sep 3, 2024

Conversation

lcarva
Copy link
Member

@lcarva lcarva commented Aug 30, 2024

Ref: EC-598

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.10%. Comparing base (014a488) to head (243b738).
Report is 9 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1902      +/-   ##
==========================================
- Coverage   80.81%   74.10%   -6.71%     
==========================================
  Files          68       88      +20     
  Lines        5050     5747     +697     
==========================================
+ Hits         4081     4259     +178     
- Misses        969     1488     +519     
Flag Coverage Δ
generative 74.10% <ø> (-6.71%) ⬇️
integration 74.10% <ø> (-6.71%) ⬇️
unit 74.10% <ø> (-6.71%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 28 files with indirect coverage changes

Copy link
Member

@zregvart zregvart left a comment

Choose a reason for hiding this comment

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

🚀

@@ -1 +1 @@
golang 1.21.9
golang 1.22.5
Copy link
Member

Choose a reason for hiding this comment

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

1.22.6 is newer, perhaps use that? I see the brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.22 is at go version go1.22.5 (Red Hat 1.22.5-1.el9) linux/amd64, makes sense to be on the same patch version.

I guess we could enforce that all versions used here are matched in CI somehow? Would that be something of value?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. Not sure if we can build the project if the version on the builder image is older (even just at the patch version). Need to play with it further.

Copy link
Member Author

Choose a reason for hiding this comment

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

Following up in #1917.

I guess we could enforce that all versions used here are matched in CI somehow? Would that be something of value?

Maybe let's see if not doing that causes any issues?

@@ -16,7 +16,7 @@

## Build

FROM docker.io/library/golang:1.21 AS build
FROM docker.io/library/golang:1.22 AS build
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if we want to, but we could pin to the patch version here...

Suggested change
FROM docker.io/library/golang:1.22 AS build
FROM docker.io/library/golang:1.22.5 AS build

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's ok to just use 1.22. Go is usually pretty stable between patch releases.

Dockerfile.dist Outdated Show resolved Hide resolved
Dockerfile.dist Outdated Show resolved Hide resolved
Ref: EC-598

Signed-off-by: Luiz Carvalho <[email protected]>
@lcarva lcarva merged commit e5810e7 into enterprise-contract:main Sep 3, 2024
11 of 12 checks passed
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.

3 participants