Skip to content

The flag --exclude-digest-tags was incorrectly spelled in oras repo tags --help#1444

Closed
maelvls wants to merge 2 commits into
oras-project:mainfrom
maelvls:fix-flag-exclude-digest-tag
Closed

The flag --exclude-digest-tags was incorrectly spelled in oras repo tags --help#1444
maelvls wants to merge 2 commits into
oras-project:mainfrom
maelvls:fix-flag-exclude-digest-tag

Conversation

@maelvls

@maelvls maelvls commented Jul 12, 2024

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Using oras 1.2.0+Homebrew, I got confused by the following --help output:

$ oras repo tags --help
Example - Show tags in the target repository with digest-like tags hidden:
  oras repo tags --exclude-digest-tag localhost:5000/hello

When running the example command, I get:

$ oras repo tags --exclude-digest-tag localhost:5000/hello
Error: unknown flag: --exclude-digest-tag

I dug into Oras' source code and found that the actual flag name is --exclude-digest-tags:

cmd.Flags().BoolVar(&opts.excludeDigestTag, "exclude-digest-tags", false, "[Preview] exclude all digest-like tags such as 'sha256-aaaa...'")
. This PR fixes the --help output to match the actual flag name.

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update? → No
  • Does this introduce breaking changes that would require an announcement or bumping the major version? → No
  • Do all new files have an appropriate license header?

@qweeah

qweeah commented Jul 12, 2024

Copy link
Copy Markdown
Contributor

Thanks @maelvls for the contribution, could you help fix the DCO following https://github.com/oras-project/oras/pull/1444/checks?check_run_id=27365143300

@codecov

codecov Bot commented Jul 12, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.49%. Comparing base (061344b) to head (d91819f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1444   +/-   ##
=======================================
  Coverage   85.49%   85.49%           
=======================================
  Files         109      109           
  Lines        3853     3853           
=======================================
  Hits         3294     3294           
  Misses        335      335           
  Partials      224      224           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@qweeah

qweeah commented Jul 15, 2024

Copy link
Copy Markdown
Contributor

Hi @maelvls, can you help fix the DCO check? It requires you to sign off the commit. You may find detailed git commands in here. Thanks in advance.

@qweeah qweeah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qweeah qweeah closed this Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants