Skip to content

Upgrade to Go 1.26 and GoReleaser v2; persist Claude Code login in devcontainer - #259

Merged
chrisghill merged 2 commits into
mainfrom
go-1.26-devcontainer
Oct 14, 2026
Merged

chrisghill merged 2 commits into
mainfrom
go-1.26-devcontainer

Conversation

@chrisghill

@chrisghill chrisghill commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Bump Go to 1.26 in go.mod, the CI workflows (test, lint, release), and the devcontainer image (go:1.26-bookworm)
  • Update module dependencies (go.mod / go.sum)
  • Add the github-cli devcontainer feature so gh is available in the container
  • Upgrade GoReleaser to v2: goreleaser-action v5 → v7 with version: "~> v2", add version: 2 to .goreleaser.yaml, and switch archives[].builds to the non-deprecated ids
  • Mount a named volume (claude-code-config-${devcontainerId}) at /home/vscode/.claude so the Claude Code login survives container rebuilds. A postCreateCommand chowns it to vscode, since the base image has no ~/.claude and Docker would otherwise create the mount point as root, which makes sign-in hang.

Testing

  • make check passes inside the rebuilt devcontainer (Go 1.26.9; tests green, golangci-lint 0 issues)
  • make docs produces no diff
  • goreleaser check (v2.18.3) passes with no deprecation warnings; goreleaser release --snapshot --clean produces the same six archives + checksums.txt with identical names as v1.26.0
  • Verified the volume mounts and /home/vscode/.claude is owned by vscode after rebuild

🤖 Generated with Claude Code

- Bump Go to 1.26 in go.mod, CI workflows, and the devcontainer image
- Update module dependencies
- Add the github-cli devcontainer feature
- Mount a named volume at ~/.claude so the Claude Code login survives
  rebuilds, chowned to vscode since the image has no such directory

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- goreleaser-action v5 -> v7, GoReleaser pinned to ~> v2
- Add version: 2 to .goreleaser.yaml and use archives.ids

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chrisghill chrisghill changed the title Upgrade to Go 1.26 and persist Claude Code login in devcontainer Upgrade to Go 1.26 and GoReleaser v2; persist Claude Code login in devcontainer Oct 14, 2026
@chrisghill
chrisghill merged commit c0e699d into main Oct 14, 2026
6 checks passed
@chrisghill
chrisghill deleted the go-1.26-devcontainer branch October 14, 2026 18:12
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.

2 participants