Skip to content

Reduce maintenance burden by letting setup-go track our Go versions#1229

Merged
tianon merged 2 commits intoopencontainers:mainfrom
tianon:setup-go
Jan 9, 2025
Merged

Reduce maintenance burden by letting setup-go track our Go versions#1229
tianon merged 2 commits intoopencontainers:mainfrom
tianon:setup-go

Conversation

@tianon
Copy link
Copy Markdown
Member

@tianon tianon commented Dec 12, 2024

actions/setup-go supports "stable" and "oldstable" as automatic aliases for the latest release and the previous to latest release, which was our intent with two of these three hard-coded versions. The third is hard-coded to match our go.mod, which actions/setup-go also supports reading from, so we can be completely DRY here.

See #1225 (comment)

`actions/setup-go` supports "stable" and "oldstable" as automatic aliases for the latest release and the previous to latest release, which was our intent with two of these three hard-coded versions.  The third is hard-coded to match our `go.mod`, which `actions/setup-go` *also* supports reading from, so we can be completely DRY here.

Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
@tianon
Copy link
Copy Markdown
Member Author

tianon commented Dec 12, 2024

Copy link
Copy Markdown
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

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

lgtm

👍

@tianon tianon merged commit e0462ab into opencontainers:main Jan 9, 2025
@tianon tianon deleted the setup-go branch January 9, 2025 18:32
@sudo-bmitch sudo-bmitch mentioned this pull request Feb 24, 2025
6 tasks
@kolyshkin
Copy link
Copy Markdown

I wanted to implement the same thing in runtime-spec but found out it lacks go.mod so we can't.

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.

6 participants