witty-crayon-22786
04/25/2022, 5:33 PMwide-zoo-86070
04/25/2022, 6:03 PMbitter-ability-32190
04/25/2022, 6:09 PMwide-zoo-86070
04/25/2022, 9:02 PMambitious-student-81104
04/25/2022, 9:24 PMbusy-vase-39202
04/25/2022, 9:58 PMrapid-exabyte-76685
04/25/2022, 11:59 PMdocker_image(
...
image_tags=[
"{build_args.BRANCH}"
]
)
where BRANCH
is included in [docker] env_vars
and [docker] build_args
(is it correct that it should be included in both places?) ... and if BRANCH
has upper-case characters it looks like the tags on the image are all in lower case. Or maybe this is by design?clean-night-52582
04/26/2022, 2:15 AMcalm-ambulance-65371
04/26/2022, 3:26 PMresolve='...'
? I have a large company-wide monorepo and we share some modules, but it seems resolve is overly strict and when simply running tests it can't resolve all requirements because they don't all use the same resolvefast-nail-55400
04/26/2022, 3:30 PMparametrize
helper.fast-nail-55400
04/26/2022, 3:30 PMcalm-ambulance-65371
04/26/2022, 3:31 PMpython_sources
?fast-nail-55400
04/26/2022, 3:31 PMhundreds-father-404
04/26/2022, 3:31 PMcalm-ambulance-65371
04/26/2022, 3:33 PMfast-nail-55400
04/26/2022, 3:33 PMresolve=parametrize("a", 'b")
hundreds-father-404
04/26/2022, 3:33 PMpython_sourcesThere, the semantic meaning is that this code can work with either lock file. Note that pants can't actually validate that for you through static analysis. For example, it is possible to have one lock file that uses Django two and another that uses Django three. If you claim that a file using Django works with both lock files, you will have to make sure that you are using the APIs safely Fortunately, pants will run mypy and Pylint with every relevant resolve.
hundreds-father-404
04/26/2022, 3:34 PMfast-nail-55400
04/26/2022, 3:34 PMhundreds-father-404
04/26/2022, 3:35 PMparametrize
with the overrides field. I switched tool chain last week to use multiple resolves, and found that often it is very helpful to be as precise as possible with which code needs to work with multiple lock files. It reduces the surface area of code that you must make sure is compatiblefast-nail-55400
04/26/2022, 3:35 PMparametrize
is used for resolve
on JVM targets, but the same syntax is used for Python targets, so still applicable as an example)bitter-tiger-53933
04/26/2022, 5:01 PM./pants lint
it errors with a InvalidFieldException: The 'source' field in target example/folder must have 1 file, but it had 0 files
.
How can I tell pants to ignore this error and continue to lint even if the file doesnāt exist and is not in version control?wide-zoo-86070
04/26/2022, 5:30 PMx.y==1.0
. In a python script, there is from x.y import z
. It seems that Pants will complain ModuleNotFoundError: No module named 'x'
. Is it expected? and how to solve it?calm-ambulance-65371
04/26/2022, 5:45 PMcommon
module in our monorepo that's depended on by something like 15 other modulescalm-ambulance-65371
04/26/2022, 5:48 PMfast-nail-55400
04/26/2022, 6:01 PMfast-nail-55400
04/26/2022, 6:03 PMparametrize
with the actual different resolves.calm-ambulance-65371
04/26/2022, 6:07 PMfast-nail-55400
04/26/2022, 6:07 PMcalm-ambulance-65371
04/26/2022, 6:08 PM