From a3b0b979c390b5ba47f65da32411c123757d358f Mon Sep 17 00:00:00 2001 From: "adriano@exa.ai" Date: Thu, 16 Apr 2026 18:20:55 +0000 Subject: [PATCH 1/2] fix(image-spec): enable nix-command and flakes in determinate installer Pass 'experimental-features = nix-command flakes' via --extra-conf so that the later 'nix run .#docker.copyTo' step works. Without this, newer determinate installers leave nix-command disabled and the build fails with: error: experimental Nix feature 'nix-command' is disabled; add '--extra-experimental-features nix-command' to enable it Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- flytekit/image_spec/default_builder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flytekit/image_spec/default_builder.py b/flytekit/image_spec/default_builder.py index bac7495d27..97e8641cc6 100644 --- a/flytekit/image_spec/default_builder.py +++ b/flytekit/image_spec/default_builder.py @@ -178,6 +178,7 @@ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \ sh -s -- install linux \ --determinate \ + --extra-conf "experimental-features = nix-command flakes" \ --extra-conf "sandbox = true" \ --extra-conf "max-substitution-jobs = 256" \ --extra-conf "http-connections = 256" \ From f6ecb8c30cd14c054410383ad6ef04404f10d65a Mon Sep 17 00:00:00 2001 From: "adriano@exa.ai" Date: Thu, 16 Apr 2026 18:37:47 +0000 Subject: [PATCH 2/2] fix(image-spec): bump determinate cache id to bust stale receipt.json Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- flytekit/image_spec/default_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flytekit/image_spec/default_builder.py b/flytekit/image_spec/default_builder.py index 97e8641cc6..e105f0d371 100644 --- a/flytekit/image_spec/default_builder.py +++ b/flytekit/image_spec/default_builder.py @@ -174,7 +174,7 @@ rm -rf /var/lib/apt/lists/* # Install Nix using cache mount so it persists across builds -RUN --mount=type=cache,target=/nix,id=nix-determinate \ +RUN --mount=type=cache,target=/nix,id=nix-determinate-v2 \ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \ sh -s -- install linux \ --determinate \ @@ -191,7 +191,7 @@ # Build with cache mount - reuses the same cache across builds RUN --mount=type=bind,source=.,target=/build/ \ - --mount=type=cache,target=/nix,id=nix-determinate \ + --mount=type=cache,target=/nix,id=nix-determinate-v2 \ --mount=type=cache,target=/root/.cache/nix,id=nix-git-cache \ --mount=type=cache,target=/var/lib/containers/cache,id=container-cache \ . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && \