Watch
0
0
Fork
You've already forked hyperhive
0

keep the backend file order case independent of the proxy file

This commit is contained in:
atlas 2026-10-28 16:36:16 +01:00
commit d29f63d4cf

View file

@ -167,11 +167,15 @@ let
"-${backendEnv}" "-${backendEnv}"
"-/run/hive-agent-backend-env/env" "-/run/hive-agent-backend-env/env"
]; ];
# The proxy file is loaded too (./egress-proxy.nix); its own cases
# cover it, and the order that matters here is the backend's.
backendFiles =
u: lib.remove "-/run/hive-agent-proxy-credential/proxy.env" u.serviceConfig.EnvironmentFile;
in in
(harness claudeApiKeyBao).serviceConfig.EnvironmentFile == want backendFiles (harness claudeApiKeyBao) == want
&& (subagent claudeApiKeyBao).serviceConfig.EnvironmentFile == want && backendFiles (subagent claudeApiKeyBao) == want
&& (harness acpBao).serviceConfig.EnvironmentFile == [ "-/run/hive-agent-backend-env/env" ] && backendFiles (harness acpBao) == [ "-/run/hive-agent-backend-env/env" ]
&& (subagent acpBao).serviceConfig.EnvironmentFile == [ "-/run/hive-agent-backend-env/env" ]; && backendFiles (subagent acpBao) == [ "-/run/hive-agent-backend-env/env" ];
} }
{ {
# The case above is the presence control: the same lookup finds the # The case above is the presence control: the same lookup finds the