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

bake: allow variables in user functions #532

Merged
merged 1 commit into from
Feb 10, 2021

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 tonistiigi@gmail.com

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
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