Skip to content
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

Inline Environment Variables - Regression 2023.11.17 ->2023.12.1 #6083

Open
Faaux opened this issue Feb 5, 2024 · 1 comment
Open

Inline Environment Variables - Regression 2023.11.17 ->2023.12.1 #6083

Faaux opened this issue Feb 5, 2024 · 1 comment
Labels
Contributor Candidate The issue has been identified/triaged and contributions are welcomed/encouraged. reported bug Type: Bug 🐛 This issue is a bug. Type: Possible Bug This issue describes a possible bug in pipenv.

Comments

@Faaux
Copy link

Faaux commented Feb 5, 2024

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).

@matteius matteius added the Type: Possible Bug This issue describes a possible bug in pipenv. label Feb 5, 2024
@navrkald
Copy link

navrkald commented Mar 6, 2024

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

@matteius matteius added Type: Bug 🐛 This issue is a bug. reported bug Contributor Candidate The issue has been identified/triaged and contributions are welcomed/encouraged. labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributor Candidate The issue has been identified/triaged and contributions are welcomed/encouraged. reported bug Type: Bug 🐛 This issue is a bug. Type: Possible Bug This issue describes a possible bug in pipenv.
Projects
None yet
Development

No branches or pull requests

3 participants