Closed
Description
What is the path of the package that you would like to have removed?
github.com/rigdev/rig/cmd/rig
Are you the owner of this package?
Yes, I'm the owner/admin at github.com/rigdev/rig
What is the reason that you could not retract this package instead?
The path github.com/rigdev/rig/cmd/rig
was integrated into github.com/rigdev/rig
, that now hosts a shared go.mod. The old cache makes some use-cases problematic (e.g. go install github.com/rigdev/rig/cmd/rig@latest
).
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
bcmills commentedon Nov 20, 2023
@andersjohnsen, removing the package from
pkg.go.dev
will not change the behavior ofgo install github.com/rigdev/rig/cmd/rig@latest
. You need to use aretract
directive instead. (See https://go.dev/ref/mod#go-mod-file-retract.)You can do that by creating a commit (possibly outside of the main branch) that restores
cmd/rig/go.mod
and retracts all versions of that module, and then applying an explicit release or pre-release tag (likecmd/rig/v0.0.0-retracted
) to that commit so thatgo install
can find it when it looks for retractions.andersjohnsen commentedon Nov 21, 2023
Aha, thank you. I'll try that out! Any chance you have a link for a repository that has applied the same trick, for reference?
andersjohnsen commentedon Nov 21, 2023
I went ahead and did as you suggested, and I can verify the following now works:
🎉
It still fails for
@main
though:Is there a step I missed, or is it a question of cache invalidation propagation?
Thank you!,
Anders
bcmills commentedon Nov 21, 2023
That may be another symptom of #39007 / #49146, or it may be related to #61415.
@suzmue, could you check the cached result for the
main
branch of this module, and perhaps remove any stale origin metadata?suzmue commentedon Dec 8, 2023
Yes it appears there was a cached result for the main branch, which I have removed. This appears to be a similar instance of #49146, where the proxy is serving a stale mapping for a branch name when more recent fetches are failing.
@andersjohnsen
go install github.com/rigdev/rig/cmd/rig@main
should work now. Please feel free to reopen if it does not!4 remaining items