-
Notifications
You must be signed in to change notification settings - Fork 68
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
archiveFromDisk: inline archives that are being ADDed #198
Conversation
Added another conformance test. |
dockerclient/archive.go
Outdated
} | ||
hdr, err = tr.Next() | ||
} | ||
dc.Close() |
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.
Why not defer these dc.Close() and f.Close()
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.
I didn't want to build up a backlog of descriptors and pipes to close, but I'll change it to add a scope there.
dockerclient/archive.go
Outdated
} | ||
hdr, err = tr.Next() | ||
} | ||
rc.Close() |
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.
Why not defer?
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.
No good reason. Changing it.
Remove the attempt to handle archives from ClientExecutor.Archive(), which couldn't handle sources specified using globbing patterns, and move that logic into archiveFromDisk(), which handles the globbing. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
LGTM |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nalind, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Remove the attempt to handle archives from ClientExecutor.Archive(), which couldn't handle sources specified using globbing patterns, and move that logic into archiveFromDisk(), which handles the globbing.
Fixes #194.