Skip to content

chore: switch iManager dep to Packagist 2.0 stable#44

Merged
bigin merged 1 commit into
masterfrom
chore/switch-to-packagist-imanager-2
May 13, 2026
Merged

chore: switch iManager dep to Packagist 2.0 stable#44
bigin merged 1 commit into
masterfrom
chore/switch-to-packagist-imanager-2

Conversation

@bigin
Copy link
Copy Markdown
Owner

@bigin bigin commented May 13, 2026

With bigins/imanager 2.0.0 published on Packagist, the workarounds the rewrite phase needed to consume the library from a sibling checkout are no longer necessary.

composer.json:

  • Constraint bigins/imanager: 2.0.x-dev^2.0.
  • repositories: [ {type: path, url: ../imanager, ...} ] removed.
  • minimum-stability: dev + prefer-stable: true removed (Composer's stable default applies).

composer.lock regenerated against Packagist's 2.0.0 dist (231ca442cb00014d8c1f86d32e91e54a55f2ce08). Verified locally: vendor/bigins/imanager is now a real package directory, not a symlink, and the live ServBay-served install (https://scriptor.cms and /editor/) returns 200 on both routes against the new package copy.

Demo image:

  • docker/Dockerfile drops the php /tmp/composer-rewrite.php step and the COPY that brought the helper in. composer.lock is no longer removed before install. Now: a plain composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader.
  • docker/composer-rewrite.php deleted — it existed solely to patch the repositories array at build time so a Packagist-less build could find iManager via a VCS repo. Verified end-to-end on a fresh clone: docker compose down -v && docker compose up -d --build boots both containers healthy, / and /editor/ return 200, and vendor/composer/installed.json confirms bigins/imanager 2.0.0 was pulled from Packagist (not from GitHub VCS, not from a sibling path).

With bigins/imanager 2.0.0 published on Packagist, the workarounds
the rewrite phase needed to consume the library from a sibling
checkout are no longer necessary.

composer.json:
- Constraint `bigins/imanager: 2.0.x-dev` → `^2.0`.
- `repositories: [ {type: path, url: ../imanager, ...} ]` removed.
- `minimum-stability: dev` + `prefer-stable: true` removed
  (Composer's stable default applies).

composer.lock regenerated against Packagist's 2.0.0 dist
(`231ca442cb00014d8c1f86d32e91e54a55f2ce08`). Verified locally:
`vendor/bigins/imanager` is now a real package directory, not a
symlink, and the live ServBay-served install (`https://scriptor.cms`
and `/editor/`) returns 200 on both routes against the new package
copy.

Demo image:
- `docker/Dockerfile` drops the `php /tmp/composer-rewrite.php`
  step and the `COPY` that brought the helper in. `composer.lock`
  is no longer removed before install. Now: a plain
  `composer install --no-dev --no-interaction --prefer-dist
  --optimize-autoloader`.
- `docker/composer-rewrite.php` deleted — it existed solely to
  patch the `repositories` array at build time so a Packagist-less
  build could find iManager via a VCS repo. Verified end-to-end on
  a fresh clone: `docker compose down -v && docker compose up -d
  --build` boots both containers healthy, `/` and `/editor/` return
  200, and `vendor/composer/installed.json` confirms
  `bigins/imanager 2.0.0` was pulled from Packagist (not from
  GitHub VCS, not from a sibling path).
@bigin bigin merged commit e303648 into master May 13, 2026
@bigin bigin deleted the chore/switch-to-packagist-imanager-2 branch May 13, 2026 14:30
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