Conversation
CI runs on push and PR: builds, vets, and tests across Linux/macOS/Windows on Go 1.21 (go.mod minimum) and latest stable. golangci-lint runs as a separate job on Linux. Release fires on vX.Y.Z tag pushes. It verifies the tag lives on main, runs the test suite, and drafts a GitHub Release with auto-generated notes. Tags containing "-" are marked as pre-releases. Because this is a library, no binaries are built — proxy.golang.org picks up the tag and consumers pull source via go get. Dependabot keeps gomod and github-actions deps current. README gains a Releasing section describing the tag-driven flow.
Pin every third-party GitHub Action to a full 40-char commit SHA with the semver in a trailing comment. Tags are mutable; SHAs are not. This defends against supply-chain attacks that move tags to malicious refs (see tj-actions/changed-files, March 2025). Dependabot's github-actions ecosystem keeps these pins current. Bump to latest stable versions while pinning: - actions/checkout v6.0.2 - actions/setup-go v6.4.0 - golangci/golangci-lint-action v9.2.0 - softprops/action-gh-release v3.0.0 Also clear the four errcheck findings golangci-lint v2 flagged on fmt.Fprintf writes to stdout, by switching to cobra's cmd.Printf which swallows the error by design.
Go 1.25 becomes the minimum supported version in go.mod, and every CI and release job pins to the same version so the matrix is OS-only now. Windows jobs were failing under pwsh: `go test -race -coverprofile=coverage.out -covermode=atomic ./...` was being misparsed, with `.out` treated as a package argument. Force `shell: bash` at the job level so all steps run under the same shell on every runner, which also fixes the failure.
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.
No description provided.