Skip to content

Fail the build when the mod solution fails to compile - #210

Open
Loutjie wants to merge 1 commit into
OpenRA:masterfrom
Loutjie:fix-make-exit-status
Open

Loutjie wants to merge 1 commit into
OpenRA:masterfrom
Loutjie:fix-make-exit-status

Conversation

@Loutjie

@Loutjie Loutjie commented Oct 15, 2026

Copy link
Copy Markdown

Fixes #209.

find -exec ... \; always exits 0, so make reported success when the mod's C# did not compile. -exec ... {} + returns the command's exit status and passes the solution path explicitly. (With more than one root .sln, dotnet build now errors visibly; before, it also failed, but the failure was swallowed.)

Testing: with a compile error in OpenRA.Mods.Example, make exits 0 before and 2 after; with valid code it still exits 0.

These changes were written with the help of Claude Code. I reviewed the changes and tested them as described above, and I take responsibility for them.

🤖 Generated with Claude Code

`find -exec ... \;` always exits 0, so `make` reported success when the
mod's C# did not compile. `-exec ... {} +` returns the command's exit
status (and passes the solution explicitly instead of relying on the
working directory).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

make reports success when the mod solution fails to compile

1 participant