-
Notifications
You must be signed in to change notification settings - Fork 500
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
Ignore interpolation for comments #2179
Comments
By default it's still an arbitrary line for the shell, so interpolation would be expected. But shouldn't it become a |
I'll give it a shot with P.S.: feel free to close. |
😕 To be clear, I expected
So I would wonder if this is a bug? |
It's not quite a bug, I think originally the point of I thought it would be hard also skip analysis (when unknown variable errors are raised) but it turned out to be pretty straightforward. As of #2180, comments are now parsed but not analyzed when |
Hi.
I've just been shuffling around some build instructions encapsulated in my justfiles. And commented out one such build instruction (since the build system of jax has been in flux).
#cd jax-{{TAG}} && bazelisk run --verbose-failure=true //jaxlib/tools:build_wheel -- --output_path=dist --cpu=x86_64
just then told me the following:
error: Variable `TAG` not defined
So, basically, it tried to interpolate the TAG value in the comment. I believe this is a situation where you should opt out of interpolation.
Of course, this depends whether or not the comment is a comment for the shell, or a comment for just. It seems to be a comment for the shell, in which case, well, I would understand just not being aware of what is a comment for the shell.
Nonetheless, the ergonomics of it seems suboptimal: I'd like to wildly refactor my build instructions without having just complaining about failing to interpolate my comments...
EDIT: It can be fixed by putting the # as the first element of the line and not putting it after the tab. But, still, it feels wrong.
The text was updated successfully, but these errors were encountered: