Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow --from-date in OCI registries by using another client #200

Open
wanddynosios opened this issue Feb 16, 2024 · 0 comments
Open

Allow --from-date in OCI registries by using another client #200

wanddynosios opened this issue Feb 16, 2024 · 0 comments

Comments

@wanddynosios
Copy link

Currently, the --date-from flag is not supported for OCI registries. The reasoning is given in the code:

// OCI registries does not provide info about the publishing date in any API endpoint.
// Therefore we cannot use the --from-date and we should publish everything.

However, the OCI spec does contain the info in the History struct. The reason (I assume) it was not possible to implement it was that go-containerregistry does not give out all available metadata, and there isn't too much activity in the related issue issue.

Other OCI clients might support this (containers/image I think does; also, harbor has this solved).

My question is: Would a PR, which uses another oci client than go-containerregistry, be accepted?

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

No branches or pull requests

1 participant