Skip to content

fix: retract old versions with mismatched module path#929

Open
cpcloud wants to merge 2 commits intomicasa-dev:mainfrom
cpcloud:worktree-agent-a2748d3b
Open

fix: retract old versions with mismatched module path#929
cpcloud wants to merge 2 commits intomicasa-dev:mainfrom
cpcloud:worktree-agent-a2748d3b

Conversation

@cpcloud
Copy link
Copy Markdown
Collaborator

@cpcloud cpcloud commented Apr 14, 2026

Summary

  • Add retract [v1.0.0, v1.80.0] to go.mod — all pre-v2.4.0 versions declared module github.com/cpcloud/micasa which conflicts with the current github.com/micasa-dev/micasa path

Reproduction steps

  1. Install Go
  2. Run go install github.com/micasa-dev/micasa/cmd/micasa@latest
  3. Before fix: version constraints conflict: module declares its path as: github.com/cpcloud/micasa but was required as: github.com/micasa-dev/micasa
  4. After fix: resolves to latest non-retracted version (v2.4.0+)

Note: v2.0.0–v2.3.0 also had the old module path but used v2.x tags without a /v2 suffix, so Go treats them as a different module entirely — only v1.x needs retracting.

Closes #923

🤖 Generated with Claude Code

@cpcloud cpcloud added the bug Something isn't working label Apr 14, 2026
cpcloud and others added 2 commits April 15, 2026 06:07
Old version tags (v1.0.0 through v1.80.0) declared module path
github.com/cpcloud/micasa, which conflicts with the current
github.com/micasa-dev/micasa path. This caused `go install
github.com/micasa-dev/micasa/cmd/micasa@latest` to fail.

Add a retract directive covering the v1.x range so Go skips those
versions when resolving @latest.

The v2.x tags (v2.0.0-v2.3.0) also used the old path but without a /v2
suffix, making them a different module from Go's perspective -- they
cannot be retracted from this module and do not cause conflicts.

closes micasa-dev#923
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cpcloud cpcloud force-pushed the worktree-agent-a2748d3b branch from 8e540c2 to 27a7207 Compare April 15, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error during installation

1 participant