gpt4 book ai didi

azure - 添加一个工件删除nupkg

转载 作者:行者123 更新时间:2023-12-03 02:16:35 25 4
gpt4 key购买 nike

我已从 Artifacts 中永久删除了一个包。

有办法恢复吗?

现在,如果我尝试推送,则会收到此错误:

Response status code does not indicate success: 409 (Conflict - The version 3.18.1 of Google.Protobuf has been deleted. It cannot be restored or pushed. (DevOps Activity ID: 014272E1-B940-428D-B3DF-4E67E5890D4B))

最佳答案

To add a Artifacts deleted nupkg

恐怕没有这样的方法可以恢复它。

根据文档Understand immutability of packages :

Once you publish a particular version of a package to a feed, that version number is permanently reserved. You cannot upload a newer revision package with that same version number, or delete it and upload a new package at the same version.

这是因为许多包客户端(包括 NuGet)都会在您的计算机上保留包的本地缓存。一旦客户端缓存了特定的package@version,它将在未来的安装/恢复请求中返回该副本。如果在服务器上将 package@version (rev 1) 替换为新的 package@version (rev 2),则客户端无法辨别差异。这可能会导致不同机器的构建结果不确定。

所以我们无法覆盖所有已经上传的包,甚至无法删除它们并重新上传。要解决此问题,您可以尝试上传新版本的包或创建新的 feed 来保存包。

关于azure - 添加一个工件删除nupkg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71021432/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com