Skip to content

Relax Go version directive#3449

Closed
Hayden-IO wants to merge 2 commits into
buildkite:mainfrom
Hayden-IO:relax-go-directive
Closed

Relax Go version directive#3449
Hayden-IO wants to merge 2 commits into
buildkite:mainfrom
Hayden-IO:relax-go-directive

Conversation

@Hayden-IO

Copy link
Copy Markdown
Contributor

Description

Without this change, dependents must specify the same Go version or newer in their go.mod file. The go version directive only needs to be the lowest version that provides the language features needed, which would be 1.x.0, with dependents building their packages using the latest toolchain.

With the updated buildkite/shellwords, we can relax the go version directive to the minor version rather than a specific patch version.

Context

buildkite/shellwords#3 and buildkite/shellwords#5

Changes

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)

Disclosures / Credits

Hayden-IO and others added 2 commits September 3, 2025 17:12
Without this change, dependents must specify the same Go version or
newer in their go.mod file. The go version directive only needs to be
the lowest version that provides the language features needed, which
would be 1.x.0, with dependents building their packages using the latest
toolchain.

With the updated buildkite/shellwords, we can relax the go version
directive to the minor version rather than a specific patch version.

Signed-off-by: Hayden <8418760+haydentherapper@users.noreply.github.com>
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.

1 participant