bitter-ability-32190
05/08/2022, 1:41 AMOutputPathField
. Unfortunately it's generic, so I don't have a value to plug into OutputPathField.value_or_default
.
Any objects to adding a mandatory field to PackageFieldSet
for the default_file_ending
? I'm guessing there's places this breaks down (like no OutputPath or multiple)?hundreds-father-404
05/08/2022, 1:44 AMhundreds-father-404
05/08/2022, 1:44 AMOutputPathField
and I only did it as a function arg because it felt less boilerplatey maybe?bitter-ability-32190
05/08/2022, 1:45 AMPyOx
doens't use a file ending, same as GoBinary
and HelmChart
⢠PythonDist
doesn't have an output path
⢠Archive
uses a dynamic value based on the formatbitter-ability-32190
05/08/2022, 1:48 AMPackageFieldSet
to aid us. Although PythonDist
is an odd duckhundreds-father-404
05/08/2022, 1:49 AMbitter-ability-32190
05/08/2022, 1:49 AMBuiltPackage
uses a tuple of artifacts, so maybe we're going down the wrong path and instead need a way to query what artifact paths would be without building them?)bitter-ability-32190
05/08/2022, 1:50 AMOutputPathField
would get us 80% of the way, and we can file an issue and fix "generically" for PyDist
)hundreds-father-404
05/08/2022, 1:51 AMOutputPathField
. Only issue is that would prohibit using the Rules API to help you out with that calculation. I don't know if that's necessary
Using the Rules API would mean a dedicated plugin hook for what the output path of the artifact-to-be-built will be š¤®bitter-ability-32190
05/08/2022, 2:36 PMhundreds-father-404
05/09/2022, 1:53 PMJust take the file extension of the needle and use it when looking in the haystack.Ah, so if the Dockerfile has
COPY path/to/foo.pex
then we will call OutputPath.value_or_default(".pex")
on everything? Seems reasonable to mebitter-ability-32190
05/09/2022, 2:31 PMbitter-ability-32190
05/09/2022, 2:31 PM