Skip to content

Conversation

@tonistiigi
Copy link
Member

Currently, all variables used in functions need to be passed in as parameters. This is quite cumbersome and ofter means variables need to be redefined as parameters. Eg. https://github.com/tonistiigi/binfmt/blob/master/docker-bake.hcl#L47 . This change allows user functions to see global variables by just changing their parsing order.

@vanstee @crazy-max

Signed-off-by: Tonis Tiigi [email protected]

Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

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

LGTM

@tonistiigi tonistiigi merged commit ad95d6b into docker:master Feb 10, 2021
@crazy-max crazy-max mentioned this pull request Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants