Skip to content

nifmake: add --keepgoing option - #2955

Merged
Araq merged 3 commits into
nim-lang:masterfrom
nitely:nifmake_keep_going
Nov 11, 2026
Merged

Araq merged 3 commits into
nim-lang:masterfrom
nitely:nifmake_keep_going

Conversation

@nitely

@nitely nitely commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Add -k / --keepgoing to nifmake run. When a command fails, nifmake keeps building everything that doesn't depend on it, instead of stopping at the first failure. The commands that depend on the failed one are skipped, and the run still exits non-zero.

Without the flag, behavior is unchanged.

failed now also flushes stdout; the nifmake: command failed line would otherwise stay buffered while later jobs write their output.

tests/nifmake/setup.nim adds a keepgoing scenario and an after job that depends only on the job still running when the other one fails:

  • with --keepgoing, after runs (total=3) and the failed job's dependent doesn't;
  • without it, after isn't launched (total=2), which also covers the existing stop-after-failure behavior.

Needed by nimsuggest2 so an unknown file/root that fails to compile does not break the rest of roots.

@Araq

Araq commented Nov 10, 2026

Copy link
Copy Markdown
Member

Name it keepgoing

@nitely nitely changed the title nifmake: add --keep-going option nifmake: add --keepgoing option Nov 11, 2026
@Araq
Araq merged commit fd78555 into nim-lang:master Nov 11, 2026
10 checks passed
planetis-m added a commit to planetis-m/nimony that referenced this pull request Nov 12, 2026
Brings in nim-lang#2960, nim-lang#2974, nim-lang#2976, nim-lang#2969, nim-lang#2955 and nim-lang#2967 so the
branch is tested against what it merges into. No conflicts.

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.

2 participants