From 9e4a36b330053384f18a9a91ec1a823e570689a6 Mon Sep 17 00:00:00 2001 From: Thomas SharedInbox Date: Fri, 22 May 2026 15:19:05 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20drop=20-u=201000=20from=20useradd=20in?= =?UTF-8?q?=20Dagger=20toolchain=20=E2=80=94=20UID=20already=20taken=20in?= =?UTF-8?q?=20flutter=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cirruslabs/flutter:3.41.6 image already has UID 1000 assigned to another user, so `useradd -u 1000` exits with code 4 ("UID not unique") and the ci user is never created. Dagger then fails to resolve `owner: "ci"` on subsequent WithDirectory calls. Removing the explicit UID lets useradd pick the next available one. Co-Authored-By: Claude Sonnet 4.6 --- ci/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/main.go b/ci/main.go index a5421a3..e0ec50c 100644 --- a/ci/main.go +++ b/ci/main.go @@ -184,7 +184,7 @@ func (m *Ci) toolchain() *dagger.Container { From("ghcr.io/cirruslabs/flutter:3.41.6"). WithExec([]string{"apt-get", "update"}). WithExec([]string{"apt-get", "install", "-y", "clang", "cmake", "ninja-build", "pkg-config", "libgtk-3-dev", "liblzma-dev", "libsecret-1-dev", "libgcrypt20-dev", "libjsoncpp-dev", "sqlite3", "iproute2", "netcat-openbsd", "xvfb", "libosmesa6", "libegl1", "lld"}). - WithExec([]string{"useradd", "-m", "-u", "1000", "-s", "/bin/bash", "ci"}). + WithExec([]string{"useradd", "-m", "-s", "/bin/bash", "ci"}). WithExec([]string{"/bin/sh", "-c", `flutter_dir=$(dirname $(dirname $(which flutter))); ` + `chown -R ci:ci "$flutter_dir"; ` +