This is the branch that moves all build-packages saved assets to global build-packages:
This simplifies the problem a lot. But as explained in the PR, there are two important things to note:
- If a build package is already installed, it won’t be saved as an asset. So in the end, the recorded annotated snapcraft.yaml will be accurate only in cleanbuild, and requires that we also record the image used during cleanbuild.
- The recorded annotated snapcraft.yaml will be slightly different than the original, with all the build packages for all the parts as global packages. As we install all the build packages before any part anyways, this is equivalent.