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: Parsing fails for named multistage dockerfile using build artifact dependency #5507

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

gsquared94
Copy link
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

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.

// Stage names are case insensitive
stages[strings.ToLower(from.as)] = true
}

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
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.

@gsquared94 gsquared94 merged commit 75a23fb into GoogleContainerTools:master Mar 11, 2021
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