Skip to content

Conversation

@nalind
Copy link
Member

@nalind nalind commented Jan 28, 2026

Perform argument expansion when stuffing ARG values from a base stage into a new one.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 28, 2026

[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

Details 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 Jan 28, 2026
@nalind
Copy link
Member Author

nalind commented Jan 29, 2026

This should fix containers/buildah#6648.

thisStageArgs := slices.Clone(inheritedArgs)
filteredUserArgs := make(map[string]string)
for k, v := range b.UserArgs {
for _, a := range b.GlobalAllowedArgs {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not for this PR, but would it be possible to change GlobalAllowedArgs to a map to improve search efficiency? It looks like we do this loop in at least one other spot.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not used by buildah or podman, but it is part of the exported API, which at this point I'd like to avoid breaking here.

@TomSweeneyRedHat
Copy link
Contributor

Build seems to be failing, some kind of Docker version unhappiness?
Otherwise
LGTM

@nalind
Copy link
Member Author

nalind commented Jan 29, 2026

Build seems to be failing, some kind of Docker version unhappiness? Otherwise LGTM

I expect that to be sorted by #317 and rebasing on top of it.

Perform argument expansion when stuffing ARG values from a base stage
into a new one.

Signed-off-by: Nalin Dahyabhai <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 30, 2026

@nalind: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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.

2 participants