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

Make setup-go inherit go version from the go.mod file #11717

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jeffwidman
Copy link
Member

@jeffwidman jeffwidman commented Mar 3, 2025

This way it's one less place we have to keep things in-sync.

I realize the version in go.mod is intended as a minimum bound and not a hardcoded version, for example, the underlying file is already using a slightly different version:
https://github.com/dependabot/dependabot-core/blob/d0b3517a63291220cbdb7b04f1f6859474fcd375/silent/tests/go.mod

But practically speaking my experience is this way is simpler to reason about.

@jeffwidman jeffwidman requested a review from a team as a code owner March 3, 2025 17:37
@jeffwidman jeffwidman force-pushed the inherit-go-version-from-the-go-mod-file branch from 83e59f4 to 2306caa Compare March 3, 2025 17:42
JamieMagee
JamieMagee previously approved these changes Mar 3, 2025
kbukum1
kbukum1 previously approved these changes Mar 3, 2025
@jeffwidman jeffwidman enabled auto-merge (squash) March 4, 2025 18:06
@jeffwidman jeffwidman force-pushed the inherit-go-version-from-the-go-mod-file branch from 2306caa to f8ac27e Compare March 4, 2025 18:19
This way it's one less place we have to keep things in-sync.

I realize the version in `go.mod` is intended as a minimum bound and not a hardcoded version, for example, the underlying file is already using a slightly different version:
https://github.com/dependabot/dependabot-core/blob/d0b3517a63291220cbdb7b04f1f6859474fcd375/silent/tests/go.mod

But practically speaking my experience is this way is simpler to reason about.
@jeffwidman jeffwidman force-pushed the inherit-go-version-from-the-go-mod-file branch from f8ac27e to e44497f Compare March 4, 2025 22:03
@jeffwidman jeffwidman dismissed stale reviews from JamieMagee and kbukum1 via f7d3a3f March 5, 2025 01:11
@jeffwidman jeffwidman mentioned this pull request Mar 5, 2025
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