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

Spaces after variables cause them to not get resolved correctly #194

Closed
rcjsuen opened this issue Nov 14, 2017 · 0 comments
Closed

Spaces after variables cause them to not get resolved correctly #194

rcjsuen opened this issue Nov 14, 2017 · 0 comments
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Nov 14, 2017

image
It seems that variables that have a space after them can confuse the parser. Although the last variable gets correctly resolved, the two variables in the front don't get any textDocument/hover information and so forth.

FROM scratch
ENV aaa=bbb
LABEL k1="$aaa $aaa $aaa"
LABEL k2='$aaa $aaa $aaa'
$ docker build .
Sending build context to Docker daemon  1.571MB
Step 1/4 : FROM scratch
 --->
Step 2/4 : ENV aaa bbb
 ---> Running in e20b517a0ba8
 ---> 14c47eda1d99
Removing intermediate container e20b517a0ba8
Step 3/4 : LABEL k1 "$aaa $aaa $aaa"
 ---> Running in 59f69181ac0d
 ---> f549709b1a58
Removing intermediate container 59f69181ac0d
Step 4/4 : LABEL k2 '$aaa $aaa $aaa'
 ---> Running in 151add14a98a
 ---> e8d1a3eb3c7c
Removing intermediate container 151add14a98a
Successfully built e8d1a3eb3c7c
$ docker inspect e8d1a3eb3c7c
"Labels": {
  "k1": "bbb bbb bbb",
  "k2": "$aaa $aaa $aaa"
}
@rcjsuen rcjsuen added the bug label Nov 14, 2017
@rcjsuen rcjsuen self-assigned this Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant