Skip to content

refactor!: remove deprecated redis compatibility facade - #395

Merged
rdimitrov merged 1 commit into
mainfrom
rdimitrov/remove-deprecated-redis
Oct 19, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
rdimitrov/remove-deprecated-redis

Conversation

@rdimitrov

@rdimitrov rdimitrov commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes the deprecated github.com/stacklok/toolhive-core/redis package. It was a compatibility shim kept after the redisconn extraction (the planned window was v0.0.44–v0.0.45; we're at v0.0.55).

It was also the only reason the root module required redisconn, redisconn/aws, redisconn/azure and redisconn/gcp. With those requires in place, scripts/validate-release.sh blocks a root tag whenever a sibling has changed since its last tag. Renovate bumps the siblings' go.mod almost weekly, so nearly every root release needed sibling tags and a pin PR first (e.g. #384, #385). After this, a root release is a single tag.

Changes

  • Delete redis/.
  • Root go.mod: drop the four redisconn* requires and their development-only replace directives; go mod tidy also drops go-redis and miniredis.
  • go.work still joins all modules for local development.
  • Docs: remove redis from the README and CLAUDE.md package tables, and update docs/redisconn-extraction.md (migration notes, simplified release ordering).

Consumers

Searched all Go code in the stacklok and stackloklabs orgs for the exact import:

  • toolhive main already uses redisconn directly.

Migration: import redisconn + the matching provider module, move connection fields into redisconn.Config, and build redisconn.DynamicAuth with the provider's constructor.

Test plan

  • go build ./... with and without GOWORK
  • go test -race ./... (root) and GOWORK=off go test ./... in each redisconn* module
  • go vet ./..., license check, scripts/test-validate-release.sh, scripts/check-redisconn-modules.sh
  • ./scripts/validate-release.sh v0.0.56 passes on this tree
  • golangci-lint in CI (local run hits an unrelated toolchain typecheck error in env/mocks)

🤖 Generated with Claude Code

The redis package was a source-compatible shim kept after the redisconn
extraction (compatibility window v0.0.44-v0.0.45). It was the only reason
the root module required the redisconn modules, which forced sibling
tags and a pin PR before nearly every root release.

Remove the package, its go.mod requires and development replaces, and
update docs. Consumers should import redisconn and the matching
provider module directly.

BREAKING CHANGE: github.com/stacklok/toolhive-core/redis is removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov
rdimitrov merged commit 1b65c8a into main Oct 19, 2026
6 checks passed
@rdimitrov
rdimitrov deleted the rdimitrov/remove-deprecated-redis branch October 19, 2026 20:16
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