running script with pipenv run
will fail if args contains special characters on Windows
#4935
Labels
pipenv run
will fail if args contains special characters on Windows
#4935
Issue description
After updating pipenv, my scripts fail with exception. I don't know if there are any configurations to fix this problem, please tell me if it exists.
When
This problem happens when the following conditions are met
glob.glob
python standard function.Cause
version 2021.11.5 has updating dependency
click
from 7.1.2 to 8.0.1.click 8.0 has new feature like below. see: https://palletsprojects.com/blog/flask-2-0-released/
FYI: pallets/click#1096
Due to the above feature, All arguments are passed for
glob.glob
function and throws exception because the arguments are not for glob function for my script.[3-1]
in my example is invalid as glob format.Latest pipenv has same issue.
IMO, windows_expand_args=False should be set.
see: pallets/click#2135
Expected result
print
Hello world!
Actual result
throws Exception
Steps to replicate
building below Dockerfiles and running it on Windows.
Dockerfile_success
with pipenv version2021.5.29
will success with printingHello world!
.Dockerfile_fail
with pipenv version2021.11.5
will fail with throwing Exception.Dockerfile_success
Dockerfile_fail
main.py
Please run
$ pipenv --support
, and paste the results here. Don't put backticks (`
) around it! The output already contains Markdown formatting.If you're on macOS, run the following:
If you're on Windows, run the following:
If you're on Linux, run the following:
The text was updated successfully, but these errors were encountered: