Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Keep and Untagged seem to compound, is that intentional?

Open
#644 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
cli

Research direction

Start by reproducing the described purge scenario with --keep 10 --untagged and --ago 0d against a repository containing tags sharing one manifest, then trace the purge flow that performs untagging and removal. Confirm the intended semantics with the issue discussion; done means the behavior is documented or corrected and covered by a regression test for the expected tag and manifest counts.

Written by the indexing model from the issue text.

Description

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
Dominant language
Go
Stars
71
Forks
52
Avg merge
8d 10h
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/acr-cli

All issues in Azure/acr-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.