Skip to content

update serpent to latest golang - #38

Open
untra wants to merge 2 commits into
mainfrom
fix/update-latest-golang
Open

untra wants to merge 2 commits into
mainfrom
fix/update-latest-golang

Conversation

@untra

@untra untra commented Dec 3, 2026 •

Copy link
Copy Markdown

PR description

Update Serpent to Go 1.26 and modernize CI

Go and dependencies

CI

  • Run on pushes to main and on pull requests, instead of on every push to every branch.
  • Split into three jobs, test, lint, and vuln. All three run on the latest Go 1.26.x patch, set once through GO_VERSION.
  • test first runs go mod tidy -diff, so it fails if go.mod/go.sum are out of date. It then runs go test -race ./...
  • lint uses golangci-lint v2.15.0, with .golangci.yaml migrated to the v2 config format.
  • vuln adds govulncheck v1.10.0.
  • The workflow token is read-only
  • Update actions/checkout to v7.0.1 and actions/setup-go to v7.1.0.
  • Tool versions are pinned in the Makefile, so make test, make lint, and make vuln run the same way locally.

Justification

  • match coder supported golang version
  • meet supported golang minor release
  • preparation anticipating further updates from supported jsonschema generation

Verification

  • make test, make lint, and make vuln pass locally on go1.26.11.
  • coder builds against this branch through a local replace, and its CLI help golden tests pass.

@untra
untra requested a review from dannykopping December 4, 2026 00:07
@dannykopping

Copy link
Copy Markdown
Collaborator

@untra the description has the "what" but not the "why"; can you elaborate please?
Jumping 5 minor versions might cause problems for consumers of this library.

@untra

untra commented Dec 4, 2026 •

Copy link
Copy Markdown
Author

@untra the description has the "what" but not the "why"; can you elaborate please? Jumping 5 minor versions might cause problems for consumers of this library.

That's fair; coder is the primary consumer of serpent, and I was raising the golang version to match what coder uses, as well as to match the minimum supported golang minor release . However serpent is used as a go library by other consumers, so maybe it should be kept at a lower version to best support other utilities. I didn't consider other downstream consumers of serpent besides coder when making this PR.

Additionally I wanted to prepare to get soon related fixes into serpent (CLI-72 and open PR 34) , and then support for jsonschema generation from serpent CLI config, a feature that may touch more serpent dependencies.

I would be amenable to discussing how this work should be best applied, or when to consider risking serpent changes.

Copy link
Copy Markdown
Collaborator

Cool, thanks 👍
I don't think we have to be too cautious, I just wanted to capture the reasoning somewhere
Godspeed

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.

2 participants