-
Notifications
You must be signed in to change notification settings - Fork 688
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
image: error out on duplicate tar entry #240
Conversation
unrelated network error in Travis, any way to re-start it? |
@runcom add whitespace to your commit message with |
@caniszczyk could we get maintainers access to Travis to be able to restart builds? |
@@ -154,6 +155,10 @@ loop: | |||
} | |||
} | |||
path := filepath.Join(dest, hdr.Name) | |||
if entries[path] { | |||
return fmt.Errorf("%s has been already processed", path) |
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.
IMHO "duplicate entry for %s" would be better
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.
fixing
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.
Fixed
tests now green though |
Signed-off-by: Antonio Murdaca <[email protected]>
Do we want to do any cleanup on unpack errors? Or are we
intentionally leaving the partially-extracted rootfs wherever we were
when we hit the error?
|
@wking I have a branch which will take care of what you're saying but I'm buried with other stuff/PRs that are higher priority to me right now. |
Can you open an issue to track this refactor of the unpack code? |
On Thu, Sep 01, 2016 at 09:51:16AM -0700, Antonio Murdaca wrote:
I've opened #242 to track cleanup on unpack errors. |
Should address the code change requested in #196
/cc @philips @stevvooe @vbatts @s-urbaniak
Signed-off-by: Antonio Murdaca [email protected]