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

Fix resolving arguments over multi-stage build #1928

Merged

Conversation

gabyx
Copy link
Contributor

@gabyx gabyx commented Feb 7, 2022

Fixes #1911

Description

Arguments are not correctly resolved over multi-stage builds.
See test.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Describe any changes here so maintainer can include it in the release notes, or delete this block.

  • Arguments over multi-stage builds are transiently propagated which was not working before.

@gabyx gabyx force-pushed the bugfix/fix-resolving-stage-arguments branch 2 times, most recently from 23c348a to 8126c2f Compare February 7, 2022 16:36
@gabyx gabyx changed the title Fix resolving argument over mulit-stage build Fix resolving argument over multi-stage build Feb 7, 2022
@gabyx gabyx force-pushed the bugfix/fix-resolving-stage-arguments branch 6 times, most recently from 1777c2b to 5f79dae Compare February 7, 2022 17:03
@gabyx gabyx changed the title Fix resolving argument over multi-stage build Fix resolving arguments over multi-stage build Feb 7, 2022
@XCasual
Copy link

XCasual commented Feb 8, 2022

So good to see that fixed. Please review it guys!

@gabyx gabyx force-pushed the bugfix/fix-resolving-stage-arguments branch from 5f79dae to b08e907 Compare February 8, 2022 12:13
@gabyx
Copy link
Contributor Author

gabyx commented Feb 8, 2022

Test report wrong output (PASSED, instead its failed!!). Please fix this.

Tests actually are now successful, No Diff.

go test ./integration -v --repo localhost:5000 -run TestRun/test_Dockerfile_test_multistage_args_issue_1911

- Building multi-stage Dockerfiles did not correctly resolve
  ARG commands over different stages. Now, each stage depends on the
  build arguments set by the stage before.

Closes: GoogleContainerTools#1911
@gabyx gabyx force-pushed the bugfix/fix-resolving-stage-arguments branch from b08e907 to 3bed0f8 Compare February 8, 2022 12:19
@tejal29 tejal29 merged commit 2d94d56 into GoogleContainerTools:main Feb 10, 2022
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.

[Bug] Args not resolved in multi-stage build
4 participants