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

Handle COPY --from=${number} #195

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

nalind
Copy link
Member

@nalind nalind commented Jul 29, 2021

Handle COPY --from=${stage} where the referred-to stage is referred to by its order in the build, and add a couple of test Dockerfiles that test COPY --from=${stage}, where ${stage} is a number. Conformance tests don't currently handle multi-stage builds, but we add a couple of samples for manual smoke testers.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 29, 2021
Copy link
Contributor

@rhatdan rhatdan left a comment

Choose a reason for hiding this comment

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

LGTM other then one question.

@@ -163,6 +168,7 @@ func (e *ClientExecutor) WithName(name string) *ClientExecutor {

child := &copied
e.Named[name] = child
e.Named[fmt.Sprintf("%d", position)] = child
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 use strconf.Itoa() it is supposed to be more efficient.

Copy link
Member Author

Choose a reason for hiding this comment

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

Only that I forgot about that function. Changing it.

Handle COPY --from=${stage} where the referred-to stage is referred to
by its order in the build, and add a couple of test Dockerfiles that
test COPY --from=${stage}, where ${stage} is a number.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@rhatdan
Copy link
Contributor

rhatdan commented Aug 2, 2021

/lgtm

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

openshift-ci bot commented Aug 2, 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 9ca9af7 into openshift:master Aug 2, 2021
@nalind nalind deleted the copy-from-numeric branch August 2, 2021 17:26
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.

None yet

2 participants