Skip to content

esoul-cz/guidelines 0.3.1: PHAR build for repositories without PHP

Choose a tag to compare

@Heroyt Heroyt released this 23 Nov 00:15
· 12 commits to main since this release

The installer for repositories without PHP: a PHAR on every release, and the fixes a repository without Composer needed.

Added

  • PHAR build: composer build:phar (scripts/build-phar, box.json) writes build/esoul-guidelines.phar and its .sha256 with a pinned, checksum-verified humbug/box from a clean --no-dev install of the committed files. The PHAR bundles the installer and the guideline layers and reports the git describe of the checkout as its version (the release tag), which sync records in the lock as package_version. Each release attaches esoul-guidelines.phar and esoul-guidelines.phar.sha256.
  • README: the three ways to install the command in a repository without PHP (composer global, the PHAR from the release, Docker).

Fixed

  • The bundled layers are found inside a PHAR: the layer scan used glob(), which does not support the phar:// stream wrapper.
  • The AGENTS.md block told every project to run vendor/bin/esoul-guidelines sync, which does not exist in a repository without Composer. It names esoul-guidelines sync and keeps the vendor path for Composer projects. Run sync after updating: until then check reports the block as outdated.
  • init, sync, check and list are covered by a test in a project that has only a package.json.