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
LABEL
error is unclear when quotes are misused
#2656
Comments
https://github.com/earthly/earthly/blob/main/earthfile2llb/interpreter.go#L1423-L1444 makes calls to expand args, but it's not clear how |
Note that this does work
|
this too works:
|
stretch goal: currently
we should create an integration test that validates the label is correctly produced in the built image. |
For clarification's sake:
The error message is obtuse (and this is not the only case where an error message is obtuse), so I would like to improve the error message - but I want to make sure that the problem is specifically that the error message is not clear enough to track down why the |
That's a really good point. where as It seems like the only issue is the error is not obvious. |
LABEL
struggles with quotesLABEL
error is unclear when quotes are misused
Our parser/lexer syntax errors are extremely hard to comprehend and have been causing confusion. This updates our ErrorListener and ErrorStrategy with a few niceties, attempting to add extra context about the incorrect syntax. These cases are pretty minimal, but they're a start. --- For issue #2656 in particular, here's the updated error message: ``` Error: build target: build main: failed to solve: resolve build context for target +foo: Earthfile line 5:45 ' ': invalid syntax Hints: - I got lost looking for '=' - did you define a key/value pair without a value? ```
fails:
The text was updated successfully, but these errors were encountered: