It should be possible to write a buildkit frontend that takes config from a .ko.yaml and can execute builds to produce ~identical images to ko.
go build invocations would happen in a container (requiring a container runtime to build), and would still be limited to ko's use cases (Go container images), but it might open up other possibilities too.
If nothing else it'd be a good exercise to try out and understand alternative buildkit frontends.
Inspired by https://twitter.com/tonistiigi/status/1467941236799463425
It should be possible to write a buildkit frontend that takes config from a .ko.yaml and can execute builds to produce ~identical images to
ko
.go build
invocations would happen in a container (requiring a container runtime to build), and would still be limited to ko's use cases (Go container images), but it might open up other possibilities too.If nothing else it'd be a good exercise to try out and understand alternative buildkit frontends.