proud-dentist-22844
06/03/2023, 1:38 AMproud-dentist-22844
06/03/2023, 1:42 AMbitter-ability-32190
06/03/2023, 1:52 AMbitter-ability-32190
06/03/2023, 1:52 AMproud-dentist-22844
06/03/2023, 1:55 AMbitter-ability-32190
06/03/2023, 1:55 AMproud-dentist-22844
06/03/2023, 1:57 AMbitter-ability-32190
06/03/2023, 1:58 AMproud-dentist-22844
06/03/2023, 2:56 AMDependencies
field is ๐ต ๐ตโ๐ซ ๐คฏ ... That assumption touches so many things!
Luckily, I don't think implementing all of that is required for https://github.com/pantsbuild/pants/pull/19155 to be merged, but I've taken a step towards whatever Dependencies
field solution we end up with (multiple fields or tagged deps).proud-dentist-22844
06/03/2023, 3:06 AMDependencies.calculate_values
converts each string into the given class. Then we could do something like this:
archive(
dependencies=[
":some_package", # because package-able targets are distinct enough
":some_shell_sources" @ wrap_as(file),
":a_license_file", # already a file
],
)
jvm_war(
dependencies=[
":some_jar",
":other_thing_wrapped_in_jar",
":loose_files" @ l("content"), # "l" is short for "label"
*l(
"content",
":another_loose_file",
":more_loose_files",
)
]
)
proud-dentist-22844
06/03/2023, 3:08 AM@
is the __matmul__
operator (matrix mulplier). Overload that to create the "labeled" class implicitly.
If not using the @
operator, then it returns an unpackable tuple of classes with the given label.bitter-ability-32190
06/03/2023, 11:23 AMproud-dentist-22844
06/06/2023, 12:57 AM