rough-vase-83553
09/10/2022, 7:28 AMdefs.bzl
concept, particularly variables that can be shared across BUILD files? I have a use case where many lockfiles might be resolved for every package in a library project. I'm hoping it can be done through something like resolves=parametrize(library_users)
rather than copying resolves=parametrize(["resolve-1", "resolve-2"...])
in every target.rough-vase-83553
09/10/2022, 7:32 AMrefined-addition-53644
09/10/2022, 10:34 AM___defaults___
to handle such use-case.
https://github.com/pantsbuild/pants/pull/15836bitter-ability-32190
09/10/2022, 7:31 PMrough-vase-83553
09/13/2022, 4:41 PM__defaults__
might have been the right move here if it were not for the parameterization. I don't suppose Pants team could add support for that use case ๐
.busy-vase-39202
09/20/2022, 7:20 PMwitty-crayon-22786
09/20/2022, 8:23 PM__defaults__
should work with parametrize
? if not, thatโs a bugrough-vase-83553
09/20/2022, 8:24 PMrough-vase-83553
09/20/2022, 11:18 PM$ ./pants update-build-files ::
19:18:21.00 [ERROR] 1 Exception encountered:
InvalidFieldTypeException: The 'resolve' field in target build-tools#__defaults__ must be a string, but was `parametrize(['meta']` with type `Parametrize`.
rough-vase-83553
09/20/2022, 11:20 PMwitty-crayon-22786
09/20/2022, 11:21 PMrough-vase-83553
09/20/2022, 11:36 PMwitty-crayon-22786
09/20/2022, 11:40 PMbusy-vase-39202
09/20/2022, 11:44 PMrough-vase-83553
09/20/2022, 11:45 PMbusy-vase-39202
09/20/2022, 11:52 PM