-
Notifications
You must be signed in to change notification settings - Fork 395
Move copy implementation into containers/image #56
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
Conversation
19e7bec to
6e76a03
Compare
|
Rebased to depend only on #64. |
|
I'm reviewing code in the last commit 15a9bb7 |
| source io.Reader | ||
| digest hash.Hash | ||
| expectedDigest []byte | ||
| failureIndicator *bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just fail? I believe it's clear that it's indicating that by the bool (and pointer)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That reads wrong to me, I read verbs as method names.
The lazy way to deal with this is to say that this has not been modified from skopeo’s copy but that’s a poor excuse :)
Actually, this does not need to be a pointer at all, simply a bool validationFailed.
Still, for consistency I’d prefer moving the code as close to unmodified as possible, and I promise to fix that separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This uses code from projectatomic/skopeo, only stripping its CLI handling. Signed-off-by: Miloslav Trmač <[email protected]>
As we’ve discussed several times, this moves the core of
skopeo copyinto the library.Depends on way too much pending work, I will rebase as necessary.