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

Add proper Go version before project checks #5594

Merged
merged 1 commit into from Jun 10, 2021

Conversation

estesp
Copy link
Member

@estesp estesp commented Jun 10, 2021

Due to a change in Go, the go.mod file cannot declare a version of Go
above the installed go version; until the default Go version in GitHub
Actions virtual environments is 1.16 or above, we have to install 1.16 before
running the project checks now.

More details: golang/go#46143

The 20210606 version of virtenv ubuntu-18.04 is still rolling out so I have only seen this fail one PR build in the last 24 hours, but we should get this change in before it starts breaking all PR runs once rollout of the new virt. env. image is complete.

Signed-off-by: Phil Estes estesp@amazon.com

Due to a change in Go, the go.mod file cannot declare a version of Go
above the installed `go version`; until the default Go version in GitHub
actions virt environments is 1.16, we have to install 1.16 before
running the project checks now.

Signed-off-by: Phil Estes <estesp@amazon.com>
@estesp estesp added the cherry-pick/1.5.x Change to be cherry picked to release/1.5 branch label Jun 10, 2021
@estesp
Copy link
Member Author

estesp commented Jun 10, 2021

Not setting cherry pick label for release/1.4 as it is still using Go 1.15.x; the CI yaml there would need the same change if we ever move up to Go 1.16 and declare that in go.mod.

@estesp
Copy link
Member Author

estesp commented Jun 10, 2021

Lucky me; this PR even tested the change as I was placed on a 0606 env. image :)

Environment: ubuntu-18.04
  Version: 20210606.1
  Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20210606.1/images/linux/Ubuntu1804-README.md
  Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu18%2F20210606.1

Copy link
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

LGTM

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jun 10, 2021

Build succeeded.

Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit 2076dc6 into containerd:master Jun 10, 2021
@estesp estesp deleted the go-for-project-checks branch June 10, 2021 16:03
@estesp estesp added cherry-picked/1.5.x PR commits are cherry-picked into release/1.5 branch and removed cherry-pick/1.5.x Change to be cherry picked to release/1.5 branch labels Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/1.5.x PR commits are cherry-picked into release/1.5 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants