fix: retract old versions with mismatched module path#929
Open
cpcloud wants to merge 2 commits intomicasa-dev:mainfrom
Open
fix: retract old versions with mismatched module path#929cpcloud wants to merge 2 commits intomicasa-dev:mainfrom
cpcloud wants to merge 2 commits intomicasa-dev:mainfrom
Conversation
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>
8e540c2 to
27a7207
Compare
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
retract [v1.0.0, v1.80.0]to go.mod — all pre-v2.4.0 versions declaredmodule github.com/cpcloud/micasawhich conflicts with the currentgithub.com/micasa-dev/micasapathReproduction steps
go install github.com/micasa-dev/micasa/cmd/micasa@latestversion constraints conflict: module declares its path as: github.com/cpcloud/micasa but was required as: github.com/micasa-dev/micasaNote: v2.0.0–v2.3.0 also had the old module path but used v2.x tags without a
/v2suffix, so Go treats them as a different module entirely — only v1.x needs retracting.Closes #923
🤖 Generated with Claude Code