Skip to content

fix: Parsing fails for named multistage dockerfile using build artifact dependency#5507

Merged
gsquared94 merged 1 commit into
GoogleContainerTools:masterfrom
gsquared94:fix-5498
Mar 11, 2021
Merged

fix: Parsing fails for named multistage dockerfile using build artifact dependency#5507
gsquared94 merged 1 commit into
GoogleContainerTools:masterfrom
gsquared94:fix-5498

Conversation

@gsquared94
Copy link
Copy Markdown
Contributor

Fixes: #5498

@gsquared94 gsquared94 requested a review from briandealwis March 8, 2021 19:55
@gsquared94 gsquared94 requested a review from a team as a code owner March 8, 2021 19:55
@google-cla google-cla Bot added the cla: yes label Mar 8, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 8, 2021

Codecov Report

Merging #5507 (87c9ef0) into master (6d4fb48) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5507      +/-   ##
==========================================
+ Coverage   71.41%   71.49%   +0.07%     
==========================================
  Files         398      398              
  Lines       14654    14641      -13     
==========================================
+ Hits        10465    10467       +2     
+ Misses       3410     3400      -10     
+ Partials      779      774       -5     
Impacted Files Coverage Δ
pkg/skaffold/docker/parse.go 84.32% <100.00%> (+1.08%) ⬆️
pkg/skaffold/errors/errors.go 87.23% <0.00%> (ø)
cmd/skaffold/app/cmd/runner.go 60.00% <0.00%> (ø)
pkg/skaffold/errors/build_problems.go 100.00% <0.00%> (ø)
pkg/skaffold/util/tar.go 56.00% <0.00%> (+5.33%) ⬆️
pkg/skaffold/errors/err_map.go 95.91% <0.00%> (+5.35%) ⬆️
pkg/skaffold/errors/deploy_problems.go 100.00% <0.00%> (+28.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d4fb48...87c9ef0. Read the comment docs.

if from.image == "" {
// some build args like artifact dependencies are not available until the first build sequence has completed.
// skip check if there are unavailable images
continue
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

immediately continuing with the next iteration was wrong here; we need to save the instruction's AS value also to stages map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The simple-artifact-dependency example fails in multi-stage build

2 participants