-
Notifications
You must be signed in to change notification settings - Fork 169
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 images to Go 1.20 #3385
Update images to Go 1.20 #3385
Conversation
@hawkowl can you make sure our images in the Azure image registries we use for ev2 are updated as well? See the CDPx Container Images wiki page in ADO. |
@bennerv done |
6c58a70
to
ab15b68
Compare
863ece3
to
4107f08
Compare
/azp run e2e |
Azure Pipelines successfully started running 1 pipeline(s). |
Moved the ancillary changes into #3413 |
Will wait to review once 3413 is merged. |
Please rebase pull request. |
2ce571d
to
c0d1510
Compare
@jaitaiwan should be good to review now |
/azp run e2e |
Azure Pipelines successfully started running 1 pipeline(s). |
e016b37
to
c827bcb
Compare
@@ -35,8 +33,6 @@ func usage() { | |||
} | |||
|
|||
func main() { | |||
rand.Seed(time.Now().UnixNano()) |
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.
@hawkowl this should be replaced with rand.New(rand.NewSource(seed))
as per https://tip.golang.org/doc/go1.20#:~:text=the%20standard%20library.-,math/rand,-The%20math/rand ?
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.
Why? rand.New returns a new rand source, it doesn't modify the global one. As per the go 1.20 docs, it's automatically seeded.
@@ -14,7 +14,7 @@ pr: none | |||
variables: | |||
Cdp_Definition_Build_Count: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning | |||
ONEBRANCH_AME_ACR_LOGIN: cdpxb8e9ef87cd634085ab141c637806568c00.azurecr.io | |||
LinuxContainerImage: $(ONEBRANCH_AME_ACR_LOGIN)/b8e9ef87-cd63-4085-ab14-1c637806568c/official/ubi8/go-toolset:1.18.4 # Docker image which is used to build the project https://aka.ms/obpipelines/containers | |||
LinuxContainerImage: $(ONEBRANCH_AME_ACR_LOGIN)/b8e9ef87-cd63-4085-ab14-1c637806568c/official/ubi8/go-toolset:1.20.10 # Docker image which is used to build the project https://aka.ms/obpipelines/containers |
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.
how to verify .10
?
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.
confirmed
/lgtm |
/azp run e2e |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run ci |
Azure Pipelines successfully started running 1 pipeline(s). |
Which issue this PR addresses:
Fixes https://issues.redhat.com/browse/ARO-5320
What this PR does / why we need it:
Updates images to Go 1.20, fixes build problems and CI/lint issues from Go 1.20.
Test plan for issue:
Should be covered by e2e, unit tests, etc
Is there any documentation that needs to be updated for this PR?
N/A