From 9a000e9a3083272fed4927bd94244a9319bb7e69 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 23 Sep 2026 16:34:16 +0200 Subject: [PATCH] Declare the build cache environment on every Idunn recipe step Idunn passes a runner container only the variables its step declares, and the image's own CARGO_HOME is read-only, so the first v2 build failed writing cargo's git database for the codex-connector dependency. Rust steps declare CARGO_HOME and HOME, web steps HOME and NPM_CONFIG_CACHE, as Odin and Heimdall do. Co-Authored-By: Claude Opus 5.5 --- deployment/idunn/recipe.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deployment/idunn/recipe.toml b/deployment/idunn/recipe.toml index e1365ff..7015fbe 100644 --- a/deployment/idunn/recipe.toml +++ b/deployment/idunn/recipe.toml @@ -7,42 +7,49 @@ required_gitlinks = ["vendor/eve"] id = "test-persona-boundary" phase = "test" runner = "rust-build" +required_environment = ["CARGO_HOME", "HOME"] argv = ["cargo", "test", "--locked", "-p", "ghostlight-persona-projection"] [[steps]] id = "test-world-library" phase = "test" runner = "rust-build" +required_environment = ["CARGO_HOME", "HOME"] argv = ["cargo", "test", "--locked", "-p", "ghostlight"] [[steps]] id = "test-dungeon" phase = "test" runner = "rust-build" +required_environment = ["CARGO_HOME", "HOME"] argv = ["cargo", "test", "--locked", "-p", "ghostlight-dungeon", "--bin", "ghostlight-dungeon"] [[steps]] id = "build-daemon" phase = "build" runner = "rust-build" +required_environment = ["CARGO_HOME", "HOME"] argv = ["cargo", "build", "--locked", "--release", "-p", "ghostlight-dungeon", "--bin", "ghostlight-dungeon"] [[steps]] id = "install-web-dependencies" phase = "prepare" runner = "web-build" +required_environment = ["HOME", "NPM_CONFIG_CACHE"] argv = ["npm", "--prefix", "web", "ci"] [[steps]] id = "test-web" phase = "test" runner = "web-build" +required_environment = ["HOME", "NPM_CONFIG_CACHE"] argv = ["npm", "--prefix", "web", "test"] [[steps]] id = "build-web" phase = "build" runner = "web-build" +required_environment = ["HOME", "NPM_CONFIG_CACHE"] argv = ["npm", "--prefix", "web", "run", "build"] [[steps]] @@ -62,6 +69,7 @@ argv = [ "--exact", ] required_environment = [ + "CARGO_HOME", "GHOSTLIGHT_ACCEPTANCE_PERSONA_PROSE_LOG", "GHOSTLIGHT_ACCEPTANCE_RUNTIME_ID", "GHOSTLIGHT_CONTROLLER_ELABORATOR_MODEL", @@ -69,6 +77,7 @@ required_environment = [ "GHOSTLIGHT_CONTROLLER_OPERATIONAL_MODEL", "GHOSTLIGHT_CONTROLLER_PERSONA_MODEL", "GHOSTLIGHT_CONTROLLER_PROJECTOR_MODEL", + "HOME", "GHOSTLIGHT_LOCAL_ENDPOINT", ]