Repository navigation
Move to Go 1.27 for v0.2.0 - #280
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe pull request updates the project to Go 1.27 and changes CI and release packaging. It redacts userinfo in malformed endpoint URL errors, adjusts retry and proxy handling, and consolidates repeated constants. It also removes unused helpers and updates code patterns. ChangesGo toolchain and releases
Endpoint URL error redaction
Request handling and retries
Shared constants and code maintenance
Estimated code review effort: 4 (Complex) | ~45 minutes Change: Other Suggested reviewers: Merge Risk:
|
Summary
Moves Olla to Go 1.27 for v0.2.0. Go 1.24 is end of life and the build reached stdlib vulnerabilities, the
golang.org/x/*andatomicgo.dev/keyboardpins existed only for 1.24, and the old tool versions fail on 1.27.Type of change
Also includes one security fix: malformed endpoint URL errors echoed credentials.
What changed
go.modhasgo 1.27.0andtoolchain go1.27.4;ci.yml,release.ymlandrelease-dryrun.ymlusego-version-file: go.mod, with checkout before setup-go.expr,testify,gjsonandptermrefreshed..golangci.ymlsetsrun.go: 1.27,gomodguard_v2and goconst tuning.staticcheck,unused,ineffassignandpreallocenabled, with their fixes and the dead code removed..goreleaser.ymldeprecated keys fixed and pinned~> v2;dockers_v2withDockerfile.goreleaserpublishes the same 12ghcr.io/thushan/ollarefs, and prereleases still publish nothing. The rootDockerfilestays formake docker-build-local.internal/adapter/discovery/repository.goredacts userinfo in malformed endpoint URL errors; covered byrepository_malformed_url_test.go.CLAUDE.mdand the v0.2.0 release notes updated.Compatibility
How was this tested?
make readyat 7ac815a, exit 0 (the later fbe6679 is a docs-only release-note trim)/olla-validate --nightlyat 7ac815a: 175 pass, 0 fail/claude-code-e2eat 7ac815a: 20/20, both legs/test-sticky-sessionsat 7ac815a: 103 pass, 0 fail::1,[::1]and::at 7ac815a: 3/3govulncheck -mode=binaryon a go1.27.4 build: no vulnerabilitiesNot yet checked: the real arm64 build of
Dockerfile.goreleaser;release-dryrun.ymlcovers it.Checklist
make readypasses (test-short + test-race + fmt + vet + lint + align)./docs) if behaviour or config changedSummary by CodeRabbit