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

buildah build should accept at most one arg #3901

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Apr 6, 2022

What type of PR is this?

/kind bug

What this PR does / why we need it:

Right now buildah just ignores it when you set more than one argument for
build. Only the first argument is used as context dir. This looks wrong
to me and can lead to users errors.

Fixes test failure in containers/podman#13687

How to verify it

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

buildah build only accepts at most one argument, it errors now when multiple arguments are given instead of ignoring them.

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 6, 2022
Right now buildah just ignores it when you set more than one argument for
build. Only the first argument is used as context dir. This looks wrong
to me and can lead to users errors.

Fixes test failure in containers/podman#13687

Signed-off-by: Paul Holzinger <[email protected]>
Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 6, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, Luap99

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 label Apr 6, 2022
@rhatdan
Copy link
Member

rhatdan commented Apr 6, 2022

/lgtm
/hold

@Luap99
Copy link
Member Author

Luap99 commented Apr 6, 2022

/hold cancel

@openshift-merge-robot openshift-merge-robot merged commit 2a1af04 into containers:main Apr 6, 2022
@Luap99 Luap99 deleted the build-args branch April 6, 2022 13:13
run_buildah 125 build /tmp/tmpdockerfile/ --userns=cnt1
check_options_flag_err "--userns=cnt1"
}

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure why you removed this test....

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved kind/bug Categorizes issue or PR as related to a bug. lgtm locked - please file new issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants