Skip to content

Option 2: add typed watch execution planning - #67

Closed
rsanheim wants to merge 3 commits into
mainfrom
rjs/watch-plan-option2
Closed

Option 2: add typed watch execution planning#67
rsanheim wants to merge 3 commits into
mainfrom
rjs/watch-plan-option2

Conversation

@rsanheim

@rsanheim rsanheim commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

Implements the focused typed-plan option for the watch execution bug. Watch handling now plans explicit job runs before executing, so a matched job with only missing targets cannot run accidentally with no args. Explicit no_targets remains a distinct planned run.

What changed

  • Added explicit watch planning concepts for job runs, missing targets, and batch plans.
  • Updated FileEventHandler to execute only planned runs.
  • Added regression coverage for missing-only jobs, explicit no_targets, same-job dedupe, and same-job target plus no-target behavior.
  • Kept the existing watch package location and overall public shape.

Validation

  • git diff --check
  • go test -mod=mod ./watch
  • bin/rake build
  • PLUR_BINARY="$PWD/plur" bin/rspec spec/integration/watch/watch_config_spec.rb spec/integration/watch/watch_integration_spec.rb spec/integration/watch/watch_spec.rb spec/integration/watch/mismatched_dirs_spec.rb

Notes

This is the smaller implementation option. It fixes the bug while avoiding the broader package-boundary move.

Base automatically changed from rjs/cli-error-output-cleanup to main June 15, 2026 00:12
@rsanheim

Copy link
Copy Markdown
Owner Author

not needed anymore

@rsanheim rsanheim closed this Jul 28, 2026
@rsanheim
rsanheim deleted the rjs/watch-plan-option2 branch July 28, 2026 14:16
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