Keep and Untagged seem to compound, is that intentional?
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先,针对一个包含共享同一 manifest 的 tag 的 repository,使用 --keep 10 --untagged 和 --ago 0d 重现所描述的 purge 场景,然后跟踪执行 untagging 和删除的 purge 流程。通过 issue 讨论确认预期语义;当该行为已被记录或修正,并由针对预期 tag 和 manifest 数量的回归测试覆盖时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
First of all, not sure if this is a bug. But let me describe a scenario.
When you have a repository with 50 tags all linked to a single manifest (so 50 manifests) and you run purge on this 1 repository with "--keep 10 --untagged" and for simplicity lets say you set "--ago 0d".
Then purge would first untag 40 manifests, leaving you with 10 still tagged.
And after that, it would remove 30 of the 40 untagged manifests.
The end result being:
10 tags
20 manifests
To Reproduce
See description
Expected behavior
With the example above in mind, I somehow expected to end up with 10 tags and 10 manifests.
I'm just wondering if how it currently works is intentional or a byproduct of adding (the keep) functionality where this is a (happy) accident.
Any relevant environment information
- OS: Windows
- Version (acr-cli) 0.19
- 主要语言
- Go
- 星标
- 71
- 派生
- 52
- 平均合并
- 8 天 10 小时
- 30 天内合并 PR
- 4
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/acr-cli 的其他 Issue
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
Proposal: Add Minimum and Maximum Retention Policies to Acr Purge可能已有人在做 @gildardogmsft 于 9 天前认领。 未关闭enhancement
难度 5/5 一周以上 新手友好度 35/100
Azure/acr-cli#670 · 2 个 reaction ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 45/100
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 52/100
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 30/100
维护者通常 1 天内回复
相似的 Issue
-
agent-research-recommend agent-review-finding chore
难度 2/5 1-3 小时 新手友好度 78/100
jordansmall/spindrift#4821 · 1 条评论 ·
维护者通常 1 天内回复
-
area:web
难度 2/5 1-3 小时 新手友好度 82/100
praetorianer777/GoTome#178 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
oracle/go-oracledb#105 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复