Skip to content

Document that the buildpack reads the go.mod go directive - #694

Merged
edmorley merged 1 commit into
mainfrom
edmorley/readme-go-directive
Sep 3, 2026
Merged

Document that the buildpack reads the go.mod go directive#694
edmorley merged 1 commit into
mainfrom
edmorley/readme-go-directive

Conversation

@edmorley

@edmorley edmorley commented Sep 3, 2026

Copy link
Copy Markdown
Member

The "Go Module Specifics" section only documented the // +heroku goVersion comment and stated the version defaults to the buildpack's DefaultVersion when it is absent, omitting that the buildpack reads the standard go directive in go.mod first (see lib/common.sh).

Reword it to document the actual precedence — the go directive is read by default, with // +heroku goVersion as an optional override — and refresh the example Go versions to a current release.

GUS-W-24088023.

The "Go Module Specifics" section only documented the
`// +heroku goVersion` comment and stated the version defaults to the
buildpack's `DefaultVersion` when it is absent, omitting that the
buildpack reads the standard `go` directive in `go.mod` first (see
`lib/common.sh`).

Reword it to document the actual precedence — the `go` directive is
read by default, with `// +heroku goVersion` as an optional override —
and refresh the example Go versions to a current release.

GUS-W-24088023.
@edmorley edmorley self-assigned this Sep 3, 2026
@edmorley
edmorley marked this pull request as ready for review September 3, 2026 13:56
@edmorley
edmorley requested a review from a team as a code owner September 3, 2026 13:56
@edmorley
edmorley enabled auto-merge (squash) September 3, 2026 13:56
@edmorley
edmorley merged commit 62b002a into main Sep 3, 2026
10 checks passed
@edmorley
edmorley deleted the edmorley/readme-go-directive branch September 3, 2026 16:06
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