You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I'm getting the syntax right, this should resolve to debug="--debug all", however the string inside of the if statement isn't processed and we get the following trace:
+debug=--debug
+'{{'debug'}}'/tmp/justZ7hT4U/build: line 91: {{: commandnot found
error: Recipe `build` failed with exit code 127
The following does work, since the work is done by bash;
But this isn't what I thought of first as my use-case was to have this check as an argument to a script and I wanted to cut corners. But I might just be getting my syntax wrong, wouldn't be the first time
The text was updated successfully, but these errors were encountered:
First of all, I'm just in love with just! Thank you so much for dedicating so much time and effort towards this project and the documentation for it
Awesome, I'm glad you like it!
Ah, so variable interpolation is only currently supported in recipe bodies, and not inside strings. I'd like to support this eventually with a python f-string like syntax, e.g.:
This is tracked in #11, so I'll close this in favor of that issue. You can tell it's a longstanding request, since it's issue number 11 😅.
I've put it off for so long because it's pretty tricky. I think it requires that the lexer get some kind of state stack, so it can track when it's inside of nested interpolations.
First of all, I'm just in love with just! Thank you so much for dedicating so much time and effort towards this project and the documentation for it
I've found a possible quirk, given my understanding of conditionals and mid-string-variables is correct
Consider the following;
If I'm getting the syntax right, this should resolve to
debug="--debug all"
, however the string inside of theif
statement isn't processed and we get the following trace:The following does work, since the work is done by
bash
;But this isn't what I thought of first as my use-case was to have this check as an argument to a script and I wanted to cut corners. But I might just be getting my syntax wrong, wouldn't be the first time
The text was updated successfully, but these errors were encountered: