~comcloudway/builds.sr.ht

d799d1142a28e40a9ad63e210a0232b7d5062863 — psykose 1 year, 7 months ago e914db6
alpine: upgrade the image before adding dependencies

this ensures that everything updates before installing any dependencies.

importantly, this sidesteps a potential apk bug
https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10881
caused by differences between 'upgrading' and 'adding' based on
already-installed dependencies.
1 files changed, 1 insertions(+), 1 deletions(-)

M images/alpine/functions
M images/alpine/functions => images/alpine/functions +1 -1
@@ 14,7 14,7 @@ boot() {
install() {
	port=$1
	shift 1
	guest_ssh -p $port build@localhost sudo apk update
	guest_ssh -p $port build@localhost sudo apk upgrade -U
	guest_ssh -p $port build@localhost sudo apk add "$@"
}