You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the source and destination registries are the same, the code needs to simply needs to tell oras-go via the oras.CopyOptions that we want to mount from the source repository if available.
An example of how to do this is here. You need to implement the MountFrom function and have it return the source repository (if the registry is the same as the destination). You probably also want to implement OnMount.
Why is this needed for ORAS?
There is a large performance improvement possible if mounting is supported. crane cp has always supported mounting and now that oras-go supports mounting (via PR), we should add it to oras cp.
Are you willing to submit PRs to contribute to this feature?
Yes, I am willing to implement it.
The text was updated successfully, but these errors were encountered:
What is the version of your ORAS CLI
main
What would you like to be added?
When the source and destination registries are the same, the code needs to simply needs to tell oras-go via the oras.CopyOptions that we want to mount from the source repository if available.
An example of how to do this is here. You need to implement the
MountFrom
function and have it return the source repository (if the registry is the same as the destination). You probably also want to implementOnMount
.Why is this needed for ORAS?
There is a large performance improvement possible if mounting is supported.
crane cp
has always supported mounting and now that oras-go supports mounting (via PR), we should add it tooras cp
.Are you willing to submit PRs to contribute to this feature?
The text was updated successfully, but these errors were encountered: