~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] alpine: upgrade the image before adding dependencies

Details
Message ID
<20230227201554.22941-1-alice@ayaya.dev>
DKIM signature
pass
Download raw message
Patch: +1 -1
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.
---
 images/alpine/functions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/images/alpine/functions b/images/alpine/functions
index 68e4394..1b61e01 100644
--- a/images/alpine/functions
+++ b/images/alpine/functions
@@ -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 "$@"
}

-- 
2.39.2
Details
Message ID
<CQU2M7OK8L3R.DUKO23HEQVX3@taiga>
In-Reply-To
<20230227201554.22941-1-alice@ayaya.dev> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/builds.sr.ht
   e914db6..d799d11  master -> master
Reply to thread Export thread (mbox)