Repository navigation
docs: tidy README, run dev tools via go tool - #8
Merged
Merged
Conversation
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.
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.
Tidies up the README and moves the dev tooling to
go tool.README
Userssection. The one useful line in it (compat_test.gochecks that this derives the same key as coder/coder'sscripts/gpgkms) now sits in the intro.go get -tool …@<commit>followed bygo tool gpgkms …instead ofgo run …@<commit>.go toolcommands, and the CI/Dependabot details are cut down.Minting the public keyis now a subsection under CLI.Licensesection at the bottom linking toLICENSE(MIT).go toolfor dev toolstools/go.modmodule that pins golangci-lint v2.15.0 and govulncheck v1.9.0 astooldependencies. It's a separate module so their large dependency graph stays out of the library'sgo.mod, and so out of every importer's module graph. Run them withgo tool -modfile=tools/go.mod <tool>.go tool, checkstools/withgo mod tidy -diff, and caches on**/go.sum./tools, so the tool bumps get the same cooldown and grouping as everything else.go run …@${ACTIONLINT_VERSION}. In the same module it fails to build, because golangci-lint's dependencies selectgo.yaml.in/yaml/v4rc.6 and actionlint v1.7.12 only builds against rc.3. There's a comment inci.ymlabout this.Checked locally
go test -race ./...go mod tidy -diffin both modulesgo tool -modfile=tools/go.mod golangci-lint run ./...: 0 issuesgo tool -modfile=tools/go.mod govulncheck ./...--offline: no findingsgo get -tool github.com/coder/gpgkms/cmd/gpgkms@52ee1a9thengo tool gpgkms) works in a fresh module