-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
special character < is escaped #836
Comments
I found a workaround passing the Dockerfile as volume, so removing the need to use < character: session.run(
"podman",
"run",
"--rm",
"-it",
"-v",
"Dockerfile:/Dockerfile",
"-v",
"hadolint.yaml:/hadolint.yaml",
"ghcr.io/hadolint/hadolint",
"hadolint",
"--config",
"/hadolint.yaml",
"/Dockerfile",
external=True,
) hope this could help other people too. |
Alternatively, you could wrap the command in a shell. See https://nox.thea.codes/en/stable/config.html#nox.sessions.Session.run . The |
Hi @cjolowicz , Thanks |
In short, I don't think this is a bug with nox. A common way to fix that is to run it in a shell. For example with bash as the shell:
|
Current Behavior
Hi,
I'm trying to run hadolint tool within nox session in following way, as per their docs:
when the session is executed, on terminal log I get exit code 127 due to < charater escaped:
Expected Behavior
I would be able to execute that command passing the Dockerfile to docker container as it expects.
Steps To Reproduce
No response
Environment
Anything else?
on activated venv, I can manually launch the same command and it works due to < not escaped:
The text was updated successfully, but these errors were encountered: