Skip to content

chore: update to image-spec v1.1.1#909

Merged
Wwwsylvia merged 2 commits into
oras-project:mainfrom
Wwwsylvia:links_v1.1.1
Mar 4, 2025
Merged

chore: update to image-spec v1.1.1#909
Wwwsylvia merged 2 commits into
oras-project:mainfrom
Wwwsylvia:links_v1.1.1

Conversation

@Wwwsylvia

@Wwwsylvia Wwwsylvia commented Mar 4, 2025

Copy link
Copy Markdown
Member
  1. Use the media type regex defined in image-spec v1.1.1 in pack.go
  2. Update the doc links to reference image-spec v1.1.1 and distribution-spec v1.1.1

Resolves: #910

Signed-off-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
Signed-off-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
@codecov

codecov Bot commented Mar 4, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.19%. Comparing base (1b77bfd) to head (181c683).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #909      +/-   ##
==========================================
- Coverage   80.24%   80.19%   -0.05%     
==========================================
  Files          63       63              
  Lines        6053     6053              
==========================================
- Hits         4857     4854       -3     
- Misses        858      860       +2     
- Partials      338      339       +1     

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

@Wwwsylvia Wwwsylvia mentioned this pull request Mar 4, 2025
2 tasks
@Wwwsylvia
Wwwsylvia requested a review from Copilot March 4, 2025 09:11

Copilot AI 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.

PR Overview

This PR updates documentation and code comments to reference image‑spec v1.1.1 along with related distribution‑spec links. It also adjusts the media type regular expression to reflect the new specification.

  • Updated references across comments in various files from v1.1.0 to v1.1.1.
  • Modified the mediaTypeRegexp in pack.go to match the new image‑spec.
  • Updated documentation links in registry and content packages to point to the new spec versions.

Reviewed Changes

File Description
pack.go Updated image‑spec documentation and mediaTypeRegexp
registry/remote/repository.go Updated distribution‑spec references
registry/remote/errcode/errors.go Updated error code documentation links
registry/repository.go Updated image‑spec references in comments
registry/remote/warning.go Updated warning reference links
content/oci/readonlystorage.go Updated image layout reference
registry/reference.go Updated references for pulling manifests
content/oci/oci.go Updated image layout references
registry/remote/registry.go Updated registry API reference
example_pack_test.go Updated image‑spec version reference in test example
content/oci/storage.go Updated image layout reference in comments
content/oci/readonlyoci.go Updated image layout reference
registry/remote/referrers.go Updated referrers API documentation references
registry/remote/url.go Updated URLs documentation references

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

pack.go:115

  • [nitpick] Please verify that the reordering in the mediaTypeRegexp character class accurately reflects the pattern defined in image‑spec v1.1.1 to avoid any unintended matching issues.
var mediaTypeRegexp = regexp.MustCompile(`^[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}$`)

@shizhMSFT shizhMSFT 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

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.

Update to OCI image-spec v1.1.1

3 participants