From a38a9b3105c37f61a3007a79876cbde26ecfe1e8 Mon Sep 17 00:00:00 2001 From: OpenClaw Date: Thu, 2 Apr 2026 09:48:27 +0300 Subject: [PATCH] ci: fix /homeless-shelter error in container builds - Set HOME=/root explicitly to prevent Nix installer from creating /homeless-shelter - Add Prepare environment step to clean up before Nix install - Disable sandbox explicitly (not available in Docker containers) --- .forgejo/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 6e1e748..ca568b3 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -7,8 +7,15 @@ on: jobs: build: runs-on: ubuntu-latest + env: + HOME: /root steps: + - name: Prepare environment + run: | + mkdir -p "$HOME" + rm -rf /homeless-shelter + - name: Checkout uses: actions/checkout@v6 @@ -16,6 +23,8 @@ jobs: uses: cachix/install-nix-action@v31 with: nix_path: nixpkgs=channel:nixos-unstable + extra_nix_config: | + sandbox = false - name: Enable flakes run: |