Skip to content

fix: validate empty OCI layout path with digest - #2230

Merged
TerryHowe merged 1 commit into
oras-project:mainfrom
TanvirTian:fix/oci-layout-empty-digest-path
Oct 9, 2026
Merged

TerryHowe merged 1 commit into
oras-project:mainfrom
TanvirTian:fix/oci-layout-empty-digest-path

Conversation

@TanvirTian

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR fixes an empty path error when using oras pull --oci-layout with a digest

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #2229

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?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.40%. Comparing base (b0a7bda) to head (d0bc96a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2230      +/-   ##
==========================================
+ Coverage   57.39%   57.40%   +0.01%     
==========================================
  Files         139      139              
  Lines        6065     6067       +2     
==========================================
+ Hits         3481     3483       +2     
  Misses       2363     2363              
  Partials      221      221              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@TerryHowe
TerryHowe merged commit 4e9a756 into oras-project:main Oct 9, 2026
10 checks passed
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.

pull --oci-layout does not reject an empty file path with a digest reference

2 participants