Skip to content

docs: heph run fails when the selector matches nothing - #88

Merged
raphaelvigee merged 1 commit into
mainfrom
claude/eager-galileo-dwvqzj
Aug 4, 2026
Merged

docs: heph run fails when the selector matches nothing#88
raphaelvigee merged 1 commit into
mainfrom
claude/eager-galileo-dwvqzj

Conversation

@raphaelvigee

Copy link
Copy Markdown
Member

Summary

  • heph run now exits non-zero when its selector (a label, a package matcher, or a -e query expression) matches no targets, instead of silently building nothing and exiting 0. heph query is unaffected — an empty result there is still a legitimate answer.
  • Documents the new behavior in the CI guide, since a silently-passing empty run is most dangerous there (e.g. a typo'd label in a CI job going green having built nothing), and next to the -e/--expr reference in the Query plugin page.

Triggered by hephbuild/heph@e420870 (hephbuild/heph#351).

Test plan

  • Docs site build (not run locally per routine instructions — CI will build)
  • Verified against the merged source diff on master (src/commands/errors.rs, src/commands/run.rs) rather than assumed behavior

🤖 Generated with Claude Code

https://claude.ai/code/session_01WEQPaLasqQ2nc2KGyGmEmg


Generated by Claude Code

heph/hephbuild#351 changed `heph run` to exit non-zero when its
selector (label, package matcher, or -e expression) matches no
targets, instead of silently building nothing and exiting 0.
`heph query` is unaffected — an empty result there is still valid.

Document the new behavior in the CI guide (where a silently-passing
empty run is most dangerous) and next to the -e/--expr reference.
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

⚡ Cloudflare Pages preview

Preview https://804bf822.hephbuild.pages.dev
Commit 3ddf327

@raphaelvigee
raphaelvigee merged commit 29f397f into main Aug 4, 2026
3 checks passed
@raphaelvigee
raphaelvigee deleted the claude/eager-galileo-dwvqzj branch August 4, 2026 15:18
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