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

Change go get -u to fetch minor/patch updates #1195

Merged
merged 1 commit into from
Jun 29, 2023
Merged

Change go get -u to fetch minor/patch updates #1195

merged 1 commit into from
Jun 29, 2023

Conversation

dmikusa
Copy link
Contributor

@dmikusa dmikusa commented Jun 29, 2023

Summary

Previously we were using get get -u all, which was great but started pulling in major version updates which of course break things. This PR switches to not pull in major version bumps, which is the default behavior of go get -u and it adds the -t flag so we also update test modules. I think this is a safer approach, and it allows us to manually update major version bumps which will usually require manual intervention anyway.

@dmikusa dmikusa added type:bug A general bug semver:patch A change requiring a patch version bump labels Jun 29, 2023
@dmikusa dmikusa requested a review from a team as a code owner June 29, 2023 03:49
Previously we were using `get get -u all`, which was great but started pulling in major version updates which of course break things. This PR switches to not pull in major version bumps, which is the default behavior of `go get -u` and it adds the `-t` flag so we also update test modules. I think this is a safer approach, and it allows us to manually update major version bumps which will usually require manual intervention anyway.

Signed-off-by: Daniel Mikusa <dan@mikusa.com>
@dmikusa dmikusa merged commit 473aca7 into main Jun 29, 2023
4 checks passed
@dmikusa dmikusa deleted the fix-go-update branch June 29, 2023 13:23
This was referenced Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants