Skip to content

Drop standalone blink bin, make --blink the only entry point - #96

Merged
TomasVotruba merged 1 commit into
mainfrom
remove-standalone-blink-bin
Sep 29, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
remove-standalone-blink-bin

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Running vendor/bin/blink directly defaults to the whole working directory with every fixer and ignores the project ecs.php (paths, skips, rule set), so it is easy to launch a full-tree run by accident. This removes the standalone bin and leaves ecs check --blink as the only entry point, which dumps the resolved ecs.php to JSON and hands it to the binary.

Changes

  • Remove bin/blink from the dev composer.json and the published build/target-repository/composer.json, and delete the bin/blink wrapper - no more vendor/bin/blink.
  • EcsGoBinaryLocator drops the now-dead vendor/bin/blink lookup; it still resolves the bundled bin/blink-<platform>, the ECS_TURBO_BIN override, and blink on PATH.
  • turbo.yaml (the --blink e2e test) builds blink from the local blink/ module instead of cloning the external TomasVotruba/ecs-go, matching the release build from Build blink binaries from local blink/ module in release #93.
  • Release build no longer chmods the removed wrapper.

--blink keeps working via the bundled per-platform binaries. PHPStan, ECS, Rector, and the Turbo tests pass locally.

Running vendor/bin/blink directly scans the whole working directory with all
fixers and ignores the project ecs.php, which is easy to trigger by accident.
Remove it so blink is reached only through 'ecs check --blink', which feeds the
resolved ecs.php (paths, skips, rules) to the binary.

- remove bin/blink from the dev and published composer bin, delete the wrapper
- EcsGoBinaryLocator drops the vendor/bin/blink lookup
- turbo CI builds blink from the local blink/ module instead of cloning the external repo
@TomasVotruba
TomasVotruba merged commit d0b207f into main Sep 29, 2026
10 checks passed
@TomasVotruba
TomasVotruba deleted the remove-standalone-blink-bin branch September 29, 2026 20:44
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