Skip to content

fix(extra): per-value mkDefault and generate opt-out#98

Merged
terlar merged 1 commit into
mainfrom
fix/auto-configure-hooks-generate
May 28, 2026
Merged

fix(extra): per-value mkDefault and generate opt-out#98
terlar merged 1 commit into
mainfrom
fix/auto-configure-hooks-generate

Conversation

@terlar

@terlar terlar commented May 28, 2026

Copy link
Copy Markdown
Owner

No description provided.

@terlar terlar force-pushed the fix/auto-configure-hooks-generate branch from d1e05af to 3e44a6d Compare May 28, 2026 11:53
autoConfigureHooks was wrapping the entire settings.pipelines attrset
with lib.mkDefault. nixpkgs filterOverrides' discards all lower-priority
definitions before per-key merging, so any user definition at default
priority (100) silently dropped all profile pipeline paths from the
mkDefault attrset (priority 1000).

Fix by moving lib.mkDefault to each individual value so both the
autoConfigureHooks and user definitions survive at the same attrset
priority, letting attrsOf merge per-key with the user value winning.

Also add gitlab-ci.generate and github-actions.generate boolean options
(default true) and filter on them in autoConfigureHooks, allowing
pipelines to opt out of file generation for backends they do not target.
@terlar terlar force-pushed the fix/auto-configure-hooks-generate branch from 3e44a6d to 74a913d Compare May 28, 2026 11:59
@terlar terlar merged commit fc6c17e into main May 28, 2026
1 check passed
@terlar terlar deleted the fix/auto-configure-hooks-generate branch May 28, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant