Merge pull request #80526 from serokell/yorickvp/fix-bk-agent-hooks
nixos/buildkite-agents: fix hooksDir assertion
This commit is contained in:
commit
368d84aafa
@ -258,7 +258,7 @@ in
|
|||||||
});
|
});
|
||||||
|
|
||||||
config.assertions = mapAgents (name: cfg: [
|
config.assertions = mapAgents (name: cfg: [
|
||||||
{ assertion = cfg.hooksPath == hooksDir || all (v: v == null) (attrValues cfg.hooks);
|
{ assertion = cfg.hooksPath == (hooksDir cfg) || all (v: v == null) (attrValues cfg.hooks);
|
||||||
message = ''
|
message = ''
|
||||||
Options `services.buildkite-agents.${name}.hooksPath' and
|
Options `services.buildkite-agents.${name}.hooksPath' and
|
||||||
`services.buildkite-agents.${name}.hooks.<name>' are mutually exclusive.
|
`services.buildkite-agents.${name}.hooks.<name>' are mutually exclusive.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user