Skip to content

Validate config in home-manager#622

Closed
Tomate0613 wants to merge 3 commits intomangowm:mainfrom
Tomate0613:main
Closed

Validate config in home-manager#622
Tomate0613 wants to merge 3 commits intomangowm:mainfrom
Tomate0613:main

Conversation

@Tomate0613
Copy link
Copy Markdown

Will make the derivation fail if the config is incorrect

@DreamMaoMao DreamMaoMao force-pushed the main branch 2 times, most recently from cfd4249 to eb06075 Compare February 2, 2026 06:59
Comment on lines +20 to +23
output=$(${cfg.package}/bin/mango -c "$out" -p 2>&1 || true)

if echo "$output" | grep -Fq '[ERROR]:'; then
echo "$output"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
output=$(${cfg.package}/bin/mango -c "$out" -p 2>&1 || true)
if echo "$output" | grep -Fq '[ERROR]:'; then
echo "$output"
${cfg.package}/bin/mango -c "$out" -p

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-p now has a non-zero exit code on validation errors after #639

@DreamMaoMao DreamMaoMao force-pushed the main branch 2 times, most recently from e357c8f to 6b79a43 Compare February 9, 2026 03:18
@Tomate0613
Copy link
Copy Markdown
Author

I think I might have rebased incorrectly

@Tomate0613
Copy link
Copy Markdown
Author

Going to close this pr and open a new one rather than messing with the git history

@Tomate0613 Tomate0613 closed this Feb 11, 2026
@Tomate0613
Copy link
Copy Markdown
Author

#655

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants