Skip to content

Do not pin minimum patch version in module - #595

Merged
abecevello merged 1 commit into
Shopify:mainfrom
jaimem88:fix-go-version-module
Oct 16, 2024
Merged

abecevello merged 1 commit into
Shopify:mainfrom
jaimem88:fix-go-version-module

Conversation

@jaimem88

Copy link
Copy Markdown
Contributor

Specifying the patch version in the Go module means that any other modules using this need to comply. This has caused our go.mod file to change. While is not necessarily bad, we only use this library for testing so it feels wrong to have to pin our own version to match this module.

By only specifying the major+minor version in the go.mod file, we let the Go toolchain pick the appropriate version that is available when building the binary but requiring at least the 1.22 version.

@abecevello

Copy link
Copy Markdown
Member

@jaimem88 Thanks for catching this mistake. I'll merge this PR and get a new version released.

@abecevello
abecevello merged commit 31bef9b into Shopify:main Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants