i can’t seem to `pants export` a virtualenv for `c...
# general
b
i can’t seem to
pants export
a virtualenv for
coverage-py
- am I missing anything here?
Copy code
root@archdev:~/pants-testing# ./pants export --py-resolve-format=symlinked_immutable_virtualenv --resolve=coverage-py
22:58:15.37 [ERROR] 1 Exception encountered:

Engine traceback:
  in `export` goal

UnrecognizedResolveNamesError: Unrecognized resolve name from the option --export-resolve: coverage-py

All valid resolve names: ['bandit', 'black', 'coverage-py', 'debugpy', 'docformatter', 'flake8', 'ipython', 'isort', 'lambdex', 'mypy', 'mypy-extra-type-stubs', 'pytest', 'python-default', 'setuptools']
EDIT: I get the same error if i try to
export mypy-extra-type-stubs
EDIT 2: pants version is 2.16.0
r
Did you try quoting the name like `--resolve=`"coverage-py"
b
yes - i’ve tried double and single quotes around the name of the resolve - no change
initially i thought it had something to do with the dashes in the resolve name, but it can
export python-default
without issue
b
Hm, printing out a 'valid' resolve name that doesn't actually work definitely seems like a bug. Do you have a moment to file one? https://github.com/pantsbuild/pants/issues/new?assignees=&labels=bug&projects=&template=bug_report.md&title= Thanks! For those "resolves" specifically, I'd expect that they're also included in the pytest and/or mypy resolves, but maybe not?
b
hm good point, i’ll take a quick look
so if i
cd
to the venv in the
dist
folder for
mypy
i don’t see any output in
tree
that would indicate
mypy-extra-type-stubs
is included. same thing with
pytest
and
coverage-py
i’ll file that bug