@feigi/fleet-ctl 3.30.31 → 3.30.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,8 +45,12 @@ from the repository root by `sh -c`:
45
45
  where an appended test file or test name lands as an argument to the test
46
46
  runner. The cache reader refuses a command whose first word does not
47
47
  resolve from the repository root (a builtin, a `PATH` entry, or an
48
- executable path), one ending in `;`, `&` or a newline, and one containing a
49
- word that starts with `#`.
48
+ executable path), one ending in `;`, `&` or a newline, one containing a
49
+ word that starts with `#`, and one with an unquoted pattern that matches no
50
+ file tracked from the repository root. Quote a pattern that a program
51
+ resolves under its own directory option, e.g.
52
+ `git -C web ls-files -- '*.test.ts'`: the reader accepts a quoted pattern
53
+ unchecked.
50
54
 
51
55
  ## 2. Prove it — this procedure exactly
52
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feigi/fleet-ctl",
3
- "version": "3.30.31",
3
+ "version": "3.30.32",
4
4
  "description": "Agent fleet: run-team controller, merge bot, PR reviewer, and the ticket pipeline they share",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -377,7 +377,11 @@ esac
377
377
  # redirection is the program's own to read, or selects no test, and is
378
378
  # accepted unprobed too. The scan stops at a `cd` or `pushd`, past which a
379
379
  # pattern no longer resolves from <repo>, and at a word that is not split but
380
- # ends in an operator then `cd` or `pushd`. A word right after an option
380
+ # ends in an operator then `cd` or `pushd`. A program's own directory option,
381
+ # such as `git -C`, does not stop it: whether that option moves where the
382
+ # program resolves a pattern is the program's to say, so a Recipe must quote a
383
+ # pattern that a program resolves under its own directory option, as in
384
+ # `git -C web ls-files -- '*.test.ts'`. A word right after an option
381
385
  # written without `=`, with no operator between them, is accepted unless it
382
386
  # has a `/` or a `.`: it may be that option's value, which names no path. A
383
387
  # pattern under a path git ignores names generated output, such as a build
@@ -483,7 +487,7 @@ if [ "$field" = test ]; then
483
487
  git -C "$repo" check-ignore -q --no-index -- "$piece" 2>"$errf" || ignored=$?
484
488
  case $ignored in
485
489
  0) ;;
486
- 1) die "the Recipe cache at $cache is invalid: its test command's pattern '$piece' matches no file tracked in $where — a Test entrypoint that selects no tests passes having run nothing, so the Recipe is stale, not a finding; $derive" ;;
490
+ 1) die "the Recipe cache at $cache is invalid: its test command's pattern '$piece' matches no file tracked in $where — a Test entrypoint that selects no tests passes having run nothing, so the Recipe is stale, not a finding; a pattern that a program resolves under its own directory option, such as git -C, must be quoted; $derive" ;;
487
491
  *) die "cannot ask git whether $repo ignores its test command's pattern '$piece' (git check-ignore exit $ignored): $(cat "$errf" 2>/dev/null)" ;;
488
492
  esac
489
493
  done