pipenv icon indicating copy to clipboard operation
pipenv copied to clipboard

Inline Environment Variables - Regression 2023.11.17 ->2023.12.1

Open Faaux opened this issue 1 year ago • 1 comments

Issue description

The following command was supported in 2023.11.17: pipenv run DISABLE_API_GENERATION=1 sphinx-build -b html -d some_path With 2023.12.1 it fails with: Error: the command DISABLE_API_GENERATION=1 could not be found within PATH or Pipfile's [scripts].

Expected result

The command sphinx-build -b html -d some_path is run with the environment variable DISABLE_API_GENERATION set to 1

Actual result

The command errors

Steps to replicate

Provide the steps to replicate (which usually at least includes the commands and the Pipfile).

Faaux avatar Feb 05 '24 09:02 Faaux

Having exactly same issue.

minimal reproducible example of Pipfile:

[scripts]
hello_env_variable = "FOO='hello world' python -c 'import os; print(os.getenv(\"FOO\"))'"

and run it:

pipenv run hello_env_variable

And got error:

Error: the command FOO=hello world (from hello_env_variable) could not be found within PATH.

When I run same command last working version of pipenv I got correct output:

hello world

navrkald avatar Mar 06 '24 14:03 navrkald