curved-television-6568
09/30/2022, 9:58 PMcurved-television-6568
09/30/2022, 9:58 PMValueError: The explicit dependency `3rdparty/python/user_reqs.lock` of the target at `3rdparty/python#pex` does not provide enough address parameters to identify which parametrization of the dependency target should be used.
Target `3rdparty/python:python` can be addressed as:
* 3rdparty/python:python
* 3rdparty/python#PyYAML
* 3rdparty/python#ansicolors
curved-television-6568
09/30/2022, 9:58 PM17:57:27.02 [INFO] stdout: "REQ DEPS: ['3rdparty/python/requirements.txt', '3rdparty/python/user_reqs.lock']"
hundreds-father-404
09/30/2022, 9:58 PMcurved-television-6568
09/30/2022, 9:59 PM3rdparty/python#pex
target, so it should have all it needs.curved-television-6568
09/30/2022, 9:59 PMcurved-television-6568
09/30/2022, 10:00 PMcurved-television-6568
09/30/2022, 10:14 PMcurved-television-6568
09/30/2022, 10:15 PM"3rdparty/python:user_reqs.lock"
… it’s my bad, none the lesscurved-television-6568
09/30/2022, 10:15 PMhundreds-father-404
09/30/2022, 10:15 PM3rdparty/python:user_reqs.lock
is this a synthetic target? or it's generated by 3rdparty/python:python
?curved-television-6568
09/30/2022, 10:15 PMcurved-television-6568
09/30/2022, 10:16 PMcurved-television-6568
09/30/2022, 10:16 PM╰─❯ ./pants peek 3rdparty/python/user_reqs.lock
[
{
"address": "3rdparty/python:user_reqs.lock",
"target_type": "lockfile",
"dependencies": [],
"description": null,
"source_raw": "user_reqs.lock",
"sources": [
"3rdparty/python/user_reqs.lock"
],
"tags": null
}
]
hundreds-father-404
09/30/2022, 10:16 PMpath/to/f.py
is shorthand for path/to/f.py:to
lmaocurved-television-6568
09/30/2022, 10:17 PMcurved-television-6568
09/30/2022, 10:18 PMhundreds-father-404
09/30/2022, 10:18 PMhundreds-father-404
09/30/2022, 10:18 PMI think it would help if that address where presented, not the value used verbatim, that would helpor maybe (aka
path/to/f.py:to
)? Because otherwise I could see people being confused why :to
is showing up but they never typed that anywhere!hundreds-father-404
09/30/2022, 10:19 PMcurved-television-6568
09/30/2022, 10:19 PMcurved-television-6568
09/30/2022, 10:19 PMhundreds-father-404
09/30/2022, 10:20 PMhundreds-father-404
09/30/2022, 10:20 PMcurved-television-6568
09/30/2022, 10:34 PM╰─❯ ./pants peek --exclude-defaults src/python/pants/foo::
[
{
"address": "src/python/pants/foo:foo",
"target_type": "python_source",
"dependencies": [],
"source_raw": "dummy.py",
"sources": [
"src/python/pants/foo/dummy.py"
]
},
{
"address": "src/python/pants/foo:other",
"target_type": "python_source",
"dependencies": [],
"source_raw": "other.py",
"sources": [
"src/python/pants/foo/other.py"
]
}
]
curved-television-6568
09/30/2022, 10:35 PMpython_sources
!curved-television-6568
09/30/2022, 10:35 PMcurved-television-6568
09/30/2022, 10:36 PMcurved-television-6568
09/30/2022, 10:36 PMpython_source(name="foo", source="dummy.py")
python_source(name="other", source="other.py")
curved-television-6568
09/30/2022, 10:37 PM╰─❯ ./pants peek --exclude-defaults src/python/pants/foo::
[
{
"address": "src/python/pants/foo:foo",
"target_type": "python_sources",
"dependencies": [
"src/python/pants/foo/dummy.py",
"src/python/pants/foo/other.py"
],
"sources": [
"src/python/pants/foo/dummy.py",
"src/python/pants/foo/other.py"
]
},
{
"address": "src/python/pants/foo/dummy.py",
"target_type": "python_source",
"dependencies": [],
"source_raw": "dummy.py",
"sources": [
"src/python/pants/foo/dummy.py"
]
},
{
"address": "src/python/pants/foo/other.py",
"target_type": "python_source",
"dependencies": [],
"source_raw": "other.py",
"sources": [
"src/python/pants/foo/other.py"
]
}
]
hundreds-father-404
09/30/2022, 10:59 PMcurved-television-6568
09/30/2022, 11:25 PM