Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make moduleit exit with 1 if nix-build fails #78

Closed
wants to merge 1 commit into from

Conversation

airportyh
Copy link
Collaborator

Why

When moduleit fails due to nix-build, it still returns exit code 0. Causing Nix modules to emit a .res file without an error.

Context: https://replit.slack.com/archives/C03KS2B221W/p1690387564427729

What changed

If nix-build fails, moduleit returns exit code 1.

Test plan

Try compiling the nix files in https://replit.com/join/xgtafsfodg-coltonatreplit with moduleit. It should fail and echo $? should give 1

@airportyh airportyh requested a review from a team as a code owner August 4, 2023 18:18
@airportyh airportyh requested review from ryantm and cdmistman and removed request for a team August 4, 2023 18:18
@airportyh airportyh closed this Aug 4, 2023
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