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

unable to use substitution when using file| #3336

Open
piotr-kubiak opened this issue Aug 30, 2024 · 0 comments
Open

unable to use substitution when using file| #3336

piotr-kubiak opened this issue Aug 30, 2024 · 0 comments

Comments

@piotr-kubiak
Copy link

With tox.ini like this:

[tox]
env_list = example1

[testenv]
set_env =
    FOO=1
allowlist_externals = bash
commands =
    bash -c 'env | grep "FOO"'

[testenv:example1]
set_env =
    {[testenv]set_env}

Everything works as expected. However, when I replace FOO=1 with file|.env in set_env:

set_env =
    file|.env

then I get an error: ValueError: invalid line 'file|.env' in set_env.

Expected: being able to use substitution when using file|.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant