Repository navigation
Upgrade Go 1.27 and deps, reuse service-framework workflows - #3
Merged
Merged
Conversation
- Bump go directive 1.19 -> 1.27; zap v1.28.0, logrus v1.10.2 and indirect deps to latest. - Replace CI and release workflows with callers of service-framework's reusable ci.yaml/release.yaml (golangci-lint v2.15.0, ubuntu-latest). - Package-level Debug/Info/Warn/Error/Fatal(msg) call the non-f methods so msg is not treated as a format string (flagged by go vet printf check under Go 1.27). Zap output is unchanged; logrus now prints '%' literally. - Add standard Go .gitignore. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test coverage changes:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why did we need it?
The repo hasn't been maintained in a while: CI ran Go 1.19 with golangci-lint v1.52.2, used outdated actions, and the dependencies were years behind.
ci.yamlandrelease.yamlnow call the reusable workflows inKyberNetwork/service-framework, the same pattern as the other public Kyber libraries such as kyberswap-dex-lib.ubuntu-latest.-v2variants, because their BuildKit daemon is cluster-internal and GitHub-hosted runners can't reach it.go 1.19→go 1.27; zap v1.24.0 → v1.28.0; logrus v1.9.0 → v1.10.2; indirect deps updated to latest.logger.go: the package-levelDebug/Info/Warn/Error/Fatal(msg)now call the non-fmethods. Under Go 1.27,go vetflags the non-constant format strings.%inmsgnow prints literally instead of e.g.%!d(MISSING)..gitignore: added GitHub's standard Go.gitignore.GH_PAT(secrets: inherit), which is used for the release and the PR coverage comment. It must be shared with this repo.Suggested next release: v1.1.0. The
godirective bump forces consumers onto Go ≥ 1.27.Related Issue
N/A, maintenance.
How Has This Been Tested?
go build ./...,go vet ./..., andgolangci-lint run(v2.15.0) pass locally. The repo has no tests.file:linefor package-level,WithFields, and nestedWithFieldscalls as before the upgrade. It also confirmed that logrus now prints%literally.🤖 Generated with Claude Code