plain-fireman-49959
01/31/2022, 3:49 PMfmt
, lint
, test
, package
, run
on everything so far (with the same set of external dependencies). mypy is failing to generate lockfiles because it can't find the dependencies that are in private repos (behind simple auth). I tried adding to the indexes, even including credentials, but it gives the same error:
Because pants-lockfile-generation depends on REDACTED (<0.4.0,>=0.3.20) which doesn't match any versions, version solving failed.
hundreds-father-404
01/31/2022, 3:57 PM[mypy].lockfile = "<none>"
. You can mostly recreate pinning transitive dependencies by adding them all to [mypy].extra_requirements
. These won't have --hash
unfortunately.
2. Generate the lockfile without Pants, however you'd like to do it, and then set [mypy].lockfile
to point to that path. There are two awkward edges here: you'd probably want to add in Pants's header to the file which is used for invalidation, and generate-lockfiles
wouldn't realize you don't want to generate for this tool, so you'd have to explicitly allowlist all the ones you want with generate-lockfiles --resolve=['tool1', 'tool2']
etchappy-kitchen-89482
01/31/2022, 4:30 PMhundreds-father-404
01/31/2022, 4:48 PMplain-fireman-49959
02/01/2022, 8:49 AM