Skip to content

fix: docs deploy workflow uses Go 1.23, can't parse go.mod tool directive#2924

Merged
michaeldwan merged 1 commit intomainfrom
md/fix-docs-go-version
Apr 9, 2026
Merged

fix: docs deploy workflow uses Go 1.23, can't parse go.mod tool directive#2924
michaeldwan merged 1 commit intomainfrom
md/fix-docs-go-version

Conversation

@michaeldwan
Copy link
Copy Markdown
Member

The docs deploy workflow hardcodes go-version: '1.23', but go.mod uses the tool directive which requires Go 1.24+. The "Generate CLI docs" step fails immediately:

go: errors parsing go.mod:
go.mod:160: unknown block type: tool

Switch to go-version-file: go.mod -- consistent with every other workflow in the repo.

…tive

go.mod uses the tool directive (Go 1.24+) but the docs workflow
hardcoded go-version: '1.23'. Use go-version-file: go.mod like
every other workflow in the repo.
@michaeldwan michaeldwan requested a review from a team as a code owner April 9, 2026 20:40
@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk bot commented Apr 9, 2026

LGTM

github run

@michaeldwan michaeldwan merged commit fea9db8 into main Apr 9, 2026
41 checks passed
@michaeldwan michaeldwan deleted the md/fix-docs-go-version branch April 9, 2026 20:57
markphelps added a commit that referenced this pull request Apr 13, 2026
…to test-harness-go

* 'test-harness-go' of https://github.com/replicate/cog:
  fix: run async setup() on the same event loop as predict() (#2927)
  fix: support dict and list[dict] as predictor input types (#2928)
  fix: docs deploy workflow uses Go 1.23, can't parse go.mod tool directive (#2924)
  fix: await async def setup() coroutine instead of silently dropping it (#2921)
  chore(deps): bump actions/setup-go from 5 to 6 (#2767)
  fix: stub generation fails locally and produces unformatted output (#2920)
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