From 154a646495711f2f62513ae251e2dd0a057f0fb0 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 21 Jul 2026 09:36:45 +0000 Subject: [PATCH] recipes: fix dotnet-helloworld NuGet HOME for CI on kirkstone NuGet MigrationRunner writes under $HOME; Actions containers use a read-only /github/home. Point HOME/DOTNET_CLI_HOME at WORKDIR like clr-loader so do_compile can restore packages. Co-authored-by: Alex Lennon --- .../dotnet-helloworld/dotnet-helloworld_1.0.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/recipes-mono/dotnet-helloworld/dotnet-helloworld_1.0.bb b/recipes-mono/dotnet-helloworld/dotnet-helloworld_1.0.bb index 59bcd01d..579493ef 100644 --- a/recipes-mono/dotnet-helloworld/dotnet-helloworld_1.0.bb +++ b/recipes-mono/dotnet-helloworld/dotnet-helloworld_1.0.bb @@ -17,6 +17,17 @@ RDEPENDS:${PN}:append = " \ COMPATIBLE_HOST ?= "(x86_64|aarch64|arm).*-linux" +# NuGet MigrationRunner hardcodes $HOME for migrations dir. +# Override HOME so it's always writable (CI containers often have read-only HOME). +export HOME = "${WORKDIR}/dotnet-home" +export DOTNET_CLI_HOME = "${WORKDIR}/dotnet-home" +export DOTNET_SKIP_FIRST_TIME_EXPERIENCE = "true" +export DOTNET_CLI_TELEMETRY_OPTOUT = "1" +export DOTNET_NOLOGO = "1" +export NUGET_PACKAGES = "${WORKDIR}/nuget-packages" +export NUGET_HTTP_CACHE_PATH = "${WORKDIR}/nuget-http-cache" + + SRC_ARCH:aarch64 = "arm64" SRC_ARCH:arm = "arm" SRC_ARCH:x86-64 = "x64"