proud-appointment-36730
06/23/2022, 9:59 PM./pants lint src/python::
is failing when trying to pull in the dependencies for the linters I've configured from my private PyPI repo. I have the PANTS_PYTHON_REPOS_INDEXES
and PANTS_PYTHON_REPOS_REPOS
env variables to strings containing the correct credentials embedded in the URL. Is there any reason pants wouldn't be using these credentials?proud-appointment-36730
06/23/2022, 10:04 PM-i
flag to the ./pex
invocation in __run.sh
in the process sandbox dir isn't getting set at allhundreds-father-404
06/23/2022, 10:04 PM-ldebug
to see the argv we pass to Pex, which will ensure it is properly setting the value: https://www.pantsbuild.org/docs/troubleshooting#debug-tip-enable-stack-traces-and-increase-logging
Then, we can figure out why Pex/pip aren't doing the right thinghundreds-father-404
06/23/2022, 10:05 PM__run.sh
. Great, that's the other way to check the argvhundreds-father-404
06/23/2022, 10:05 PM./pants help-advanced python-repos
with those env vars set - it should show the current value for the optionsproud-appointment-36730
06/23/2022, 10:06 PMwitty-crayon-22786
06/23/2022, 10:09 PMproud-appointment-36730
06/23/2022, 10:11 PM[python]
enable_resolves = true
default_resolve = "kode"
lockfile_generator = "pex"
# interpreter_constraints = ["CPython==3.5.*"]
interpreter_constraints = ["CPython==3.8.*"]
And using version 2.11.0
proud-appointment-36730
06/23/2022, 10:15 PM{
"allow_builds": true,
"allow_prereleases": false,
"allow_wheels": true,
"build_isolation": true,
"constraints": [],
"locked_resolves": [
{
"locked_requirements": [
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "064e6d81f04ac96bc0d176cbaae953a0332482b22d3ad70d47c8a7f2732eef6f",
"url": "<https://files.pythonhosted.org/packages/8a/7b/b32b3952ee4e9fd76c7a9b18d4bafb70ed65ac6426d1802103c2eaf1d0de/docformatter-1.4.tar.gz>"
}
],
"project_name": "docformatter",
"requires_dists": [
"untokenize"
],
"requires_python": null,
"version": "1.4"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "3865dbbbb8efb4bb5eaa72f1be7f3e0be00ea8b7f125c69cbd1f5fda926f37a2",
"url": "<https://files.pythonhosted.org/packages/f7/46/e7cea8159199096e1df52da20a57a6665da80c37fb8aeb848a3e47442c32/untokenize-0.1.1.tar.gz>"
}
],
"project_name": "untokenize",
"requires_dists": [],
"requires_python": null,
"version": "0.1.1"
}
],
"platform_tag": [
"cp39",
"cp39",
"macosx_11_0_arm64"
]
}
],
"pex_version": "2.1.72",
"prefer_older_binary": false,
"requirements": [
"docformatter<1.5,>=1.4"
],
"requires_python": [
"<4,>=3.7"
],
"resolver_version": "pip-2020-resolver",
"style": "universal",
"transitive": true,
"use_pep517": null
}
witty-crayon-22786
06/23/2022, 10:16 PM2.1.93
, or use a custom-built lockfilewitty-crayon-22786
06/23/2022, 10:16 PM…andnow properly handlespex --lock
authentication.https://github.com/pantsbuild/pex/releases/tag/v2.1.93
witty-crayon-22786
06/23/2022, 10:17 PMmain
is just upgrading now: https://github.com/pantsbuild/pants/pull/15911, and we’ll likely cherry-pick this to 2.12
proud-appointment-36730
06/23/2022, 10:22 PMwitty-crayon-22786
06/23/2022, 10:24 PM[pex-cli]
version = "v2.1.93"
known_versions = [
"v2.1.93|macos_arm64|80fc6b94f5db253a71061974cb8d8ce520932aef44d989e9057917cc33a30fd6|3802280",
"v2.1.93|macos_x86_64|80fc6b94f5db253a71061974cb8d8ce520932aef44d989e9057917cc33a30fd6|3802280",
"v2.1.93|linux_x86_64|80fc6b94f5db253a71061974cb8d8ce520932aef44d989e9057917cc33a30fd6|3802280",
]
proud-appointment-36730
06/23/2022, 10:34 PMpackage
goal works just fine. The publish
goal works just fine. The lint
goal does not. I vaguely understand that it has something to do with how pants is managed the installation of the linters it needs to run, and it's doing that through pex somehow, but that's about itproud-appointment-36730
06/23/2022, 10:39 PMproud-appointment-36730
06/23/2022, 10:40 PMproud-appointment-36730
06/23/2022, 11:40 PMproud-appointment-36730
06/23/2022, 11:56 PMtest
, lint
etc) start breaking again for python targets because building requirements.pex
from my pinned 3rd party deps in my lockfile fails when trying to authenticate to my private PyPI repo. What I have for now is good enough to pitch to my managers tomorrow, but when y'all get back online please do reach out. I'd be happy to interactively debug this with folks and get it all sorted outproud-appointment-36730
06/24/2022, 12:03 AMwitty-crayon-22786
06/24/2022, 4:23 PMwitty-crayon-22786
06/24/2022, 4:23 PMproud-appointment-36730
06/24/2022, 5:58 PMmain
branch and the 2.12.x
branch, but had the same issues there. When I get some time, I'll really dive into this and try to pull together an actionable, descriptive issue on Github for you allproud-appointment-36730
06/24/2022, 5:59 PM