-
Notifications
You must be signed in to change notification settings - Fork 98
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
Anonymous blob mounting #756
Comments
Is this an issue of the distribution-spec? 🤔 |
@Wwwsylvia I'm not sure what you mean. It is not an issue with the distribution spec. The spec gives the client more flexibility in that they do not have to provide the |
@ktarplee Thanks for the clarification, I see what you mean now. oras-go/registry/remote/repository.go Lines 770 to 773 in 9b6f321
and Lines 287 to 296 in 9b6f321
So anonymousMounting := func(ctx context.Context, desc ocispec.Descriptor) ([]string, error) {
return []string{""}, nil
}
opts := oras.CopyOptions{
MountFrom = anonymousMounting
}
desc, err := oras.Copy(ctx, src, tagName, dst, tagName, opts) If needed, we can make if more user friendly though. |
This issue is stale because it has been open for 60 days with no activity. Remove the stale label or comment to prevent it from being closed in 30 days. |
For motivation and background see this
From the spec the
from
field is now optional when doing blob mounts.The text was updated successfully, but these errors were encountered: