Skip to content

Generalize product metapackage detection for alternate builds#4

Open
rhoerr wants to merge 1 commit intomainfrom
claude/generalize-product-metadata-YIO0T
Open

Generalize product metapackage detection for alternate builds#4
rhoerr wants to merge 1 commit intomainfrom
claude/generalize-product-metadata-YIO0T

Conversation

@rhoerr
Copy link
Owner

@rhoerr rhoerr commented Jan 30, 2026

The system package detection was previously hardcoded to only recognize
packages matching mage-os/product-*-edition. This change generalizes
the regex to match any mage-os/product-* package, enabling support for
alternate product metapackages like mage-os/product-minimal.

  • Update isSystemPackage() regex to match any mage-os/product-* package
  • Update getRequiredPhpVersion() to use isSystemPackage() instead of
    hardcoded package name
  • Add unit tests for isSystemPackage() with various package patterns
  • Update ProductMetadataTest to use proper mage-os package names

https://claude.ai/code/session_01KVLKuTyatjiMtYp2npbqgc

The system package detection was previously hardcoded to only recognize
packages matching `mage-os/product-*-edition`. This change generalizes
the regex to match any `mage-os/product-*` package, enabling support for
alternate product metapackages like `mage-os/product-minimal`.

- Update isSystemPackage() regex to match any mage-os/product-* package
- Update getRequiredPhpVersion() to use isSystemPackage() instead of
  hardcoded package name
- Add unit tests for isSystemPackage() with various package patterns
- Update ProductMetadataTest to use proper mage-os package names

https://claude.ai/code/session_01KVLKuTyatjiMtYp2npbqgc
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.

2 participants