英文:
How to delete a tagged release of a Go module
问题
删除(本地和远程)git存储库的标签。
git tag -d v13.0.0
git push origin :refs/tags/v13.0.0
我已经创建了标签v13.0.0,然后删除了它。
但是我仍然可以执行go get github.com/IBM/nzgo@v13.0.0
我需要以其他方式删除它吗?
我在这里看不到v13.0.0标签:
https://github.com/IBM/nzgo/tags
英文:
Deleted (locally and remotely) tag for a git repository.
git tag -d v13.0.0
git push origin :refs/tags/v13.0.0
I had created tag v13.0.0 and then deleted.
But still I can do go get github.com/IBM/nzgo@v13.0.0
Do I need to delete it any other way?
I can see there is no v13.0.0 tag here:
https://github.com/IBM/nzgo/tags
答案1
得分: 2
已翻译的内容:
已发布的模块无法删除,只能撤回。请参考这个链接了解如何撤回一个版本。答案。
来自文档:
为了保持模块构建的确定性,在发布后无法修改版本。即使你删除或更改了版本标签,proxy.golang.org和其他代理可能已经缓存了原始版本。
此外,已撤回的版本应该保留在版本控制存储库和模块代理中,以确保依赖于它们的构建不会中断。
icza在这个答案中提供了一种向go-discovery-feedback@google.com
发送电子邮件的替代方法,其中包含您想要删除的导入路径或模块路径,这也可能会有所帮助。
英文:
Published modules can not be deleted but only be retracted. Please have a look at this on how to retract a version. answer.
From documentation
> To keep module builds deterministic, a version cannot be modified
> after it is published. Even if you delete or change a version tag,
> proxy.golang.org and other proxies probably already have the original
> cached.
Also, Retracted versions should remain available in version control repositories and on module proxies to ensure that builds that depend on them are not broken.
This answer by icza gives alternate way of sending an email to go-discovery-feedback@google.com
, with the import path or module path that you want to remove might help too.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论