Return error if basename is expanded to blank - #37396
Merged
yongtang merged 1 commit intoJul 15, 2018
Merged
Conversation
Member
|
Looking good; testing with empty values; both with a docker build --no-cache -<<'EOF'
ARG SOMETHING
ARG ALPINE
FROM ${SOMETHING} as builder
# No actual build steps, just copying
FROM ${ALPINE}
EXPOSE 8080
EOFWith docker build --no-cache -<<'EOF'
ARG SOMETHING
ARG ALPINE
FROM ${SOMETHING}:latest as builder
# No actual build steps, just copying
FROM ${ALPINE}:latest
EXPOSE 8080
EOF |
Member
|
Wondering if we already have a test covering the "with |
Member
|
Also; janky failure is not related; tracked through #32673 restarting, but all other tests were green |
Codecov Report
@@ Coverage Diff @@
## master #37396 +/- ##
=========================================
Coverage ? 34.99%
=========================================
Files ? 610
Lines ? 44883
Branches ? 0
=========================================
Hits ? 15708
Misses ? 27060
Partials ? 2115 |
Member
|
I think @tonistiigi had some questions about this; @tonistiigi PTAL |
Member
|
The real reason why the error didn't appear seems to be that empty string is reused to mean moby/daemon/images/image_builder.go Line 171 in 328c089 |
Fix: moby#37325 Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
yui-knk
force-pushed
the
error_when_base_name_resolved_to_blank
branch
from
July 15, 2018 13:29
dc2440c to
c9542d3
Compare
Contributor
Author
|
I added comment. Can you review again when you have a chance? |
tonistiigi
approved these changes
Jul 15, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix: #37325
Signed-off-by: Yuichiro Kaneko spiketeika@gmail.com