iproute2 and libbpf: vendoring on the small scale
iproute2 and libbpf: vendoring on the small scale
Posted Nov 14, 2020 7:06 UTC (Sat) by ncm (guest, #165)Parent article: iproute2 and libbpf: vendoring on the small scale
The Kubernetes problem can be solved by treating all Golang programs as if they were scripts, and compiling them, with all their dependencies, at package installation time. (This is akin to what we already do when installing Elisp and Python modules, or kernel modules.) Then, a Golang library package just maintains a local repository shared among all the installed versions. The dependency annotations for each program package identify everything needed, so that installing a Golang program package would amount to fetching the all the right revisions to local repositories, checking them out, building, and then discarding the checkouts.
In fact the C compiler is also fast enough that libbfd and other fast-moving dependencies could be treated much the same way.