Skip to content

docs: tidy README, run dev tools via go tool - #8

Merged
deansheather merged 1 commit into
mainfrom
readme-v4yf
Nov 17, 2026
Merged

deansheather merged 1 commit into
mainfrom
readme-v4yf

Conversation

@deansheather

Copy link
Copy Markdown
Contributor

Tidies up the README and moves the dev tooling to go tool.

README

  • Removed the Users section. The one useful line in it (compat_test.go checks that this derives the same key as coder/coder's scripts/gpgkms) now sits in the intro.
  • CLI: shows go get -tool …@<commit> followed by go tool gpgkms … instead of go run …@<commit>.
  • Development: uses go tool commands, and the CI/Dependabot details are cut down.
  • Minting the public key is now a subsection under CLI.
  • Added a License section at the bottom linking to LICENSE (MIT).

go tool for dev tools

  • New tools/go.mod module that pins golangci-lint v2.15.0 and govulncheck v1.9.0 as tool dependencies. It's a separate module so their large dependency graph stays out of the library's go.mod, and so out of every importer's module graph. Run them with go tool -modfile=tools/go.mod <tool>.
  • CI runs both through go tool, checks tools/ with go mod tidy -diff, and caches on **/go.sum.
  • Dependabot now also watches /tools, so the tool bumps get the same cooldown and grouping as everything else.
  • actionlint stays on go run …@${ACTIONLINT_VERSION}. In the same module it fails to build, because golangci-lint's dependencies select go.yaml.in/yaml/v4 rc.6 and actionlint v1.7.12 only builds against rc.3. There's a comment in ci.yml about this.

Checked locally

  • go test -race ./...
  • go mod tidy -diff in both modules
  • go tool -modfile=tools/go.mod golangci-lint run ./...: 0 issues
  • go tool -modfile=tools/go.mod govulncheck ./...
  • actionlint, and zizmor --offline: no findings
  • The README's consumer flow (go get -tool github.com/coder/gpgkms/cmd/gpgkms@52ee1a9 then go tool gpgkms) works in a fresh module

Drop the Users section, document go tool usage for the CLI, and add a License section. Pin golangci-lint and govulncheck in a separate tools/go.mod module and run them with go tool in CI; Dependabot now watches /tools too.
@deansheather
deansheather requested a review from a team as a code owner November 17, 2026 06:10
@deansheather
deansheather merged commit ef3b080 into main Nov 17, 2026
8 checks passed
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.

1 participant