Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Keep and Untagged seem to compound, is that intentional?

未关闭
#644 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
go
领域
cli

调研方向

首先,针对一个包含共享同一 manifest 的 tag 的 repository,使用 --keep 10 --untagged 和 --ago 0d 重现所描述的 purge 场景,然后跟踪执行 untagging 和删除的 purge 流程。通过 issue 讨论确认预期语义;当该行为已被记录或修正,并由针对预期 tag 和 manifest 数量的回归测试覆盖时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

bug

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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Azure/acr-cli 的其他 Issue

查看 Azure/acr-cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。