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

calcCopyInfo: also trim leading path on rootPath #204

Merged
merged 1 commit into from
Oct 30, 2021

Conversation

nalind
Copy link
Member

@nalind nalind commented Oct 19, 2021

calcCopyInfo trims a leading "./" or "/./" from one of its parameters, but not the other, which can break COPY instructions when the build context location is specified using a path that starts with "./".

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 19, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nalind

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 19, 2021
@nalind nalind added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 19, 2021
@nalind nalind removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 19, 2021
@rhatdan
Copy link
Contributor

rhatdan commented Oct 19, 2021

LGTM

calcCopyInfo trims a leading "./" or "/./" from one of its parameters,
but not the other, which can break COPY instructions when the build
context location is specified using a path that starts with "./".

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

LGTM

@rhatdan rhatdan merged commit ac0ec94 into openshift:master Oct 30, 2021
@nalind nalind deleted the copyinfo-subdir branch November 16, 2021 20:40
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants