Allow removing a tag from a published package

Open
#4,529 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
api, cli

Research direction

The issue identifies the harbor version tag CLI command and the API tags endpoints in the linked OpenAPI spec as relevant entry points. Start by reading how the CLI adds or moves tags and how the API implements GET .../tags and PUT .../tags/{tag}. Done means there is a supported way to remove a tag from a published package without moving it to another revision; the issue does not identify tests or a specific implementation scope.

Written by the indexing model from the issue text.

Description

Summary

Harbor Hub has no way to remove a tag from a published package, so a tag added by mistake stays on the revision.

Context

harbor version tag can add or move a tag, but neither the CLI nor the API can remove one. The API spec has GET .../tags and PUT .../tags/{tag}, with no DELETE.

We hit this on review-bench/reviewbench-public. Revision 2 has the tags latest and v1. ReviewBench is still a research preview, so we want to tag it preview and drop v1. Moving v1 to revision 1 with --force takes it off revision 2, but anyone running @v1 would then get an older dataset without warning.

Happy to open a PR for the CLI change once the API supports it.

Dominant language
Python
Stars
5.6k
Forks
1.9k
Avg merge
1d 17h
Merged PRs (30d)
156

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 harbor-framework/harbor

All issues in harbor-framework/harbor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.