Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(nix): keep routine starter programs in the Rust build source (#9886)

teod3cc7381945c
diff --git a/nix/cloud-storage.nix b/nix/cloud-storage.nix
index aa96eff640..ebe8e6e530 100644
--- a/nix/cloud-storage.nix
+++ b/nix/cloud-storage.nix
@@ -64,6 +64,11 @@
assetFilter =
path: _type:
builtins.match ".*\\.(md|html|txt|json|jsonl|canvas|sql|sh|ttf|xml|graphql|mjs|proto)$" path != null;
+ # `crates/routine_program` embeds its starter programs with `include_str!`.
+ # Only these `.ts` files: matching every `.ts` would pull the web app into
+ # the Rust source hash.
+ routineStartersFilter =
+ path: _type: builtins.match ".*/crates/routine_program/src/starters/[^/]*\\.ts$" (toString path) != null;
# Rust local HTTP clients embed only the public proxy CA, never its keys.
localCaFilter = path: _type: pkgs.lib.hasSuffix "/infra/local/certs/ca.pem" (toString path);
binFilter = path: _type: builtins.match ".*\\.bin$" path != null;
@@ -73,6 +78,7 @@
|| (localCaFilter path type)
|| (pdfiumFilter path type)
|| (assetFilter path type)
+ || (routineStartersFilter path type)
|| (binFilter path type)
|| (craneLib.filterCargoSources path type);
cloudStorageSrc = pkgs.lib.cleanSourceWith {