Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Add reproduction for broken package ignore #4390

Closed

Conversation

Kingdutch
Copy link

The monorepo-builder configuration should ignore the package at
packages/monorepo-builder/ignore/composer.json but the ExcludeFile
iterator will only match against a sub-path.

Running composer merge demonstrates that the invalid package contained
in the test composer.json ends up in our root composer.json which is
undesirable.

Similarly using a relative path as argument to
packageDirectoriesExcludes would not work either because the
validation in that function requires the file to exist and it won't be
able to properly resolve a relative file path.

Reproduces #4389

The monorepo-builder configuration should ignore the package at
`packages/monorepo-builder/ignore/composer.json` but the ExcludeFile
iterator will only match against a sub-path.

Running `composer merge` demonstrates that the invalid package contained
in the test composer.json ends up in our root composer.json which is
undesirable.

Similarly using a relative path as argument to
`packageDirectoriesExcludes` would not work either because the
validation in that function requires the file to exist and it won't be
able to properly resolve a relative file path.
@TomasVotruba
Copy link
Member

Hi, thanks for the PR. I just got into this.

This actually is not a test, but changing our local setup :)
We need to be unit test as any other, so we can test it in isolation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants