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

I've been unsuccessful in passing multiple variables: #3112

Closed
gaborbernat opened this issue Sep 1, 2023 · 0 comments · Fixed by #3111
Closed

I've been unsuccessful in passing multiple variables: #3112

gaborbernat opened this issue Sep 1, 2023 · 0 comments · Fixed by #3111

Comments

@gaborbernat
Copy link
Member

I've been unsuccessful in passing multiple variables:

 jaraco.mongodb debt/win-timeout @ env 'TOX_OVERRIDE=testenv.pass_env=FOO,BAR' tox c -k pass_env
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
ROOT: env var TOX_OVERRIDE='testenv.pass_env=FOO,BAR' cannot be transformed to typing.List[tox.config.loader.api.Override] because ArgumentTypeError('override BAR has no = sign in it')
[testenv:py]
pass_env =
  CC
  CCSHARED
  CFLAGS
  CPPFLAGS
  CURL_CA_BUNDLE
  CXX
  HOME
  LANG
  LANGUAGE
  LDFLAGS
  LD_LIBRARY_PATH
  PIP_*
  PKG_CONFIG
  PKG_CONFIG_PATH
  PKG_CONFIG_SYSROOT_DIR
  REQUESTS_CA_BUNDLE
  SSL_CERT_FILE
  TERM
  TMPDIR
  VIRTUALENV_*
  http_proxy
  https_proxy
  no_proxy

Why not just add those values into passenv?

I'm trying to passthrough GITHUB_* and RUNNER_* to allow the tests to accommodate slow runners on Windows on Github (jaraco/jaraco.mongodb@cd1cf2d). I only expect those to be present in CI and thus want to keep that concern local to that environment's config.

Originally posted by @jaraco in #2681 (reply in thread)

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

Successfully merging a pull request may close this issue.

1 participant