Reputation: 312
I have this Go package on GitHub. and on GitHub I've delete old version tags. but on:
https://pkg.go.dev/example.com/username/pkg
it still showing those old versions.
I'm wondering how to completely delete those old package from pkg.go.dev
Upvotes: 3
Views: 1181
Reputation: 5197
Go module versions are immutable: you cannot invalidate them by simply removing tags, because if you then reused those tags you would cause checksum mismatches for existing users.
Instead, you can use the retract
directive in your go.mod
file to warn users to avoid versions in a specific range, and to cause the go
command not to add new dependencies on those versions by default.
Upvotes: 6