build: fix module path and add release pipeline#6
Merged
Conversation
- Update module path from github.com/agentctl/agentctl to github.com/chocks/agentctl so go install works - Add ldflags version injection (replaces hardcoded v0.1.0) - Update Makefile with proper build and install targets - Add GoReleaser config for cross-platform binary releases - Add GitHub Actions release workflow triggered by v* tags Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update module path in hook.go, mcp.go, and related test/doc files added on main. Replace agentctlVersion const with ldflags var. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Covers setup, workflow, code guidelines, schema contract rules, and PR checklist. Aligns with existing CLAUDE.md and AGENTS.md conventions without duplicating them. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add a merge-base check that fails the release if the tagged commit is not an ancestor of main, preventing accidental releases from feature branches. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Runs golangci-lint, go test -race, and go build on every PR targeting main and on pushes to main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The repo's .golangci.yml uses v2 syntax (version: "2", linters.default). golangci-lint-action@v6 installs v1.x which rejects this config. Upgrade to @v7 which installs golangci-lint v2. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace exclude-use-default (v1) with exclude-default-patterns (v2). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove invalid issues.exclude-default-patterns from .golangci.yml - Remove unused mcpInitializeParams type caught by lint - Add make ci target (fmt + lint + test + build) - Simplify CI workflow to just `make ci` Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CI now runs make install-tools + make ci, matching the local developer workflow exactly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Avoid surprise breaks from upstream changes by pinning to a known stable version. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
github.com/agentctl/agentctl→github.com/chocks/agentctlsogo installworks against the real repo-ldflagsversion injection —agentctl versionnow reports the git tag/SHA instead of a hardcoded stringv*tag to cut a release (restricted to tags onmain)CONTRIBUTING.mdcovering setup, workflow, code guidelines, schema contract rules, and PR checklistHow to release
Test plan
go buildandgo test ./...pass with new module pathbin/agentctl versionprints injected versiongo install github.com/chocks/agentctl/cmd/agentctl@latestworksv0.1.0and confirm GitHub Actions release produces binaries🤖 Generated with Claude Code