Repository navigation
Conversation
|
@untra the description has the "what" but not the "why"; can you elaborate please? |
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. |
|
Cool, thanks 👍 |
PR description
Update Serpent to Go 1.26 and modernize CI
Go and dependencies
golang.org/x/expfor the standard library:slices,maps, andcmp.Orderedreplaceconstraints.Ordered.golang.org/x/crypto/ssh/terminalwithgolang.org/x/term.golang.org/x/cryptodirectly.github.com/pion/udpwithgithub.com/pion/transport/v3/udp.cdr.dev/slog/v3(rc1 → v3.2.0),spf13/pflag(v1.1.0),testify(v1.12.1),termenv(v0.16.0), andgo-str2duration(v2.2.0). Indirect updates includegrpcv1.85.0 andotelv1.47.0.tc := tcloop-variable copiesCI
mainand on pull requests, instead of on every push to every branch.test,lint, andvuln. All three run on the latest Go 1.26.x patch, set once throughGO_VERSION.testfirst runsgo mod tidy -diff, so it fails ifgo.mod/go.sumare out of date. It then runsgo test -race ./...lintuses golangci-lint v2.15.0, with.golangci.yamlmigrated to the v2 config format.vulnaddsgovulncheckv1.10.0.actions/checkoutto v7.0.1 andactions/setup-goto v7.1.0.Makefile, somake test,make lint, andmake vulnrun the same way locally.Justification
Verification
make test,make lint, andmake vulnpass locally on go1.26.11.replace, and its CLI help golden tests pass.