Right now this
SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft COMMAND
will always call
apt-get update, no more, no less.
- apt-get is slow
- packages won't be upgraded
- Snapcraft won't get updated build packages
- snapcraft update is never run inside the container
I realize this looks as if I'm mixing several unrelated issues. The reality is that these are all consequences of the fact that snapcraft update doesn't know about containers right now.
I proposed a PR which makes update transparently run
snap refresh and
snapcraft update in the container. When a new container's created only
apt-get update is called once.