keep the backend file order case independent of the proxy file
This commit is contained in:
parent
b551eb02ff
commit
d29f63d4cf
1 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue