gorgeous-winter-99296
03/18/2023, 4:39 PMFROM scratch
in my container backend. I did a very rough impl like this:
oci_empty_image(name="empty")
file(name="numbers", source="numbers.csv")
oci_image_build(
name="data",
base=[":empty"],
packages=[":numbers"],
)
But the extra targtet is a bit unnecessary, so I'm trying to condense it a bit. What I'd want is something that's still explicit, maybe base=[empty()]
or similar. I know I can solve this with strings and manual shenanigans - but that would end up needing handling in a bunch of places, and breaks things like pants dependees
. If it's a target my fieldsets all just "work" (using a dummy scalar field as a marker, admittedly). Any thoughts/prior art? 🙂gorgeous-winter-99296
03/18/2023, 5:56 PMbase=[f':{oci_empty_image(name="empty").name}']
Which is... icky.gorgeous-winter-99296
03/18/2023, 5:59 PMfast-nail-55400
03/18/2023, 9:30 PMfast-nail-55400
03/18/2023, 9:30 PMgorgeous-winter-99296
03/18/2023, 11:21 PMgorgeous-winter-99296
03/18/2023, 11:22 PMfast-nail-55400
03/19/2023, 10:02 AMbase
is not set in a target. For example, in the Go plugin, the various targets are converted to BuildGoPackageTargetRequest
which is a DAG of package build requests without any reference to targets including build requests for SDK packages (which are not represented as targets).gorgeous-winter-99296
03/19/2023, 10:29 AM