Skip to content
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

Merged
merged 1 commit into from
Aug 4, 2021

Conversation

nalind
Copy link
Member

@nalind nalind commented Aug 2, 2021

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.

@openshift-ci openshift-ci bot requested review from mrunalp and rhatdan August 2, 2021 19:00
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 2, 2021
@nalind
Copy link
Member Author

nalind commented Aug 3, 2021

Added another conformance test.

}
hdr, err = tr.Next()
}
dc.Close()
Copy link
Contributor

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()

Copy link
Member Author

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.

}
hdr, err = tr.Next()
}
rc.Close()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not defer?

Copy link
Member Author

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.

dockerclient/client.go Outdated Show resolved Hide resolved
dockerclient/client.go Outdated Show resolved Hide resolved
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>
@TomSweeneyRedHat
Copy link
Contributor

LGTM

@rhatdan
Copy link
Contributor

rhatdan commented Aug 4, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 4, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 4, 2021

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot merged commit 647d409 into openshift:master Aug 4, 2021
@nalind nalind deleted the add-archives branch August 4, 2021 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ADD should unpack archives
3 participants