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

Fix setup-go actions #25167

Merged
merged 3 commits into from
Jun 9, 2023
Merged

Fix setup-go actions #25167

merged 3 commits into from
Jun 9, 2023

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented Jun 9, 2023

The setup-go actions did not all have check-latest which means they use some cached version of go that currently still resolves to go1.20.4, as seen in a number of recent runs that currently fail at govulncheck because of it:

Run actions/setup-go@v4
Setup go version spec >=1.20
Attempting to resolve the latest version from the manifest...
matching >=1.20...
Resolved as '1.20.4'

Add the check-latest option which should guarantee that this cache is skipped.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 9, 2023
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 9, 2023
@silverwind silverwind added topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Jun 9, 2023
@silverwind
Copy link
Member Author

Temporary change to backend files added to confirm that the actions now pass. Will revert before merge.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 9, 2023
templates/home.tmpl Outdated Show resolved Hide resolved
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 9, 2023
@silverwind
Copy link
Member Author

It still resolved to 1.20.4. I can only assume this is a bug in the action.

Setup go version spec >=1.20
Attempting to resolve the latest version from the manifest...
matching >=1.20...
Resolved as '1.20.4'

@silverwind
Copy link
Member Author

Opened actions/setup-go#384

@lunny
Copy link
Member

lunny commented Jun 9, 2023

Maybe the problems are in https://github.com/actions/go-versions/releases

@silverwind silverwind added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. and removed lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged labels Jun 9, 2023
@silverwind
Copy link
Member Author

Let's merge it. Builds should automatically start to pass once actions/setup-go#384 is resolved.

@silverwind silverwind merged commit 3c6aa8d into go-gitea:main Jun 9, 2023
@GiteaBot GiteaBot added this to the 1.21.0 milestone Jun 9, 2023
@silverwind silverwind deleted the setup-go branch June 9, 2023 07:33
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jun 9, 2023
@silverwind
Copy link
Member Author

silverwind commented Jun 9, 2023

Actual fix is actions/go-versions#75

zjjhot added a commit to zjjhot/gitea that referenced this pull request Jun 12, 2023
* upstream/main:
  [skip ci] Updated licenses and gitignores
  Add `WithPullRequest` for `actionsNotifier` (go-gitea#25144)
  [skip ci] Updated translations via Crowdin
  [skip ci] Updated translations via Crowdin
  Update github.com/google/go-github to v53 (go-gitea#25157)
  Fix bug for code search if code is disabled (go-gitea#25173)
  Minor arc-green color tweaks (go-gitea#25175)
  Fix duplicate Reviewed-by trailers (go-gitea#24796)
  Fix go-gitea#25133 (go-gitea#25162)
  Fix mobile navbar and misc cleanups (go-gitea#25134)
  Button and color enhancements (go-gitea#24989)
  Fix setup-go actions (go-gitea#25167)

# Conflicts:
#	templates/base/head_navbar.tmpl
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants