Open mraleph opened 1 year ago
Is there anything we can help with here?
I could e.g. set up a trusted builder that makes these dill files and puts them in the cloud storage and cipd alongside the official releases? Then we can amend the checked in SDK mechanism with this alternative
Yeah, I think we need some infrastructure e.g. decide where we put these and what kind of bots we need around this. Somebody on the VM team can do the GN / scripts wiring then.
Currently we rely on prebuilt Dart SDK to bootstrap, however in reality we only need CFE part of it as long as CFE is compiled to Kernel binary compatible with the current VM version.
During bootstrap we can build a
run-kernel
binary (essentiallydart
withoutkernel-service
,vm-service
or other core libraries snapshot included).run-kernel
+prebuilt-cfe.dill
will give us equivalent ofdart
, e.g.dart input.dart
is done throughrun-kernel prebuilt-cfe.dill input.dart /tmp/output.dill && run-kernel /tmp/output.dill
. Which will allow us to complete the bootstrap.