-
Notifications
You must be signed in to change notification settings - Fork 482
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
UndefinedVar build check behaviour for PATH-like variables #2751
Comments
It depends if this
This means |
Does this check actually checks base image? Documentation doesn't have any info about it. Is there any way to ignore only current case of this check (not all check entirely)? Something like https://github.com/hadolint/hadolint?tab=readme-ov-file#inline-ignores or https://github.com/koalaman/shellcheck/wiki/Ignore#ignoring-one-specific-instance-in-a-file |
Yes it does
Indeed we could add a callout about it (cc @dvdksn).
I recall this has been discussed internally but not sure what is the current state of it. @colinhemmings do we have this scoped to a milestone? |
@Stikus, yes, we have something similar to inline ignores on the roadmap, but we don't have a date for it just yet. I will make sure to keep you posted. |
Thanks for fast answer, maybe there are any workarounds - like |
Hello! I am also interested in workarounds... Which one is better? |
According to docs:
This is not correct statement - you can append
$PATH
without any declaration in Dockerfile, as well as some other variables like$LD_LIBRARY_PATH
. But not PYTHONPATH:PYTHONPATH="$SOFT/Stranger-${STRANGER_VERSION}/local/lib/python3.10/dist-packages:$PYTHONPATH"
results warning:
UndefinedVar: Usage of undefined variable '$PYTHONPATH' (line 72)
Are there any settings for predefined variables (not in Dockerfile) or how is should be fixed?
Stack Overflow question about this problem.
The text was updated successfully, but these errors were encountered: