monobuild icon indicating copy to clipboard operation
monobuild copied to clipboard

Match components using path prefixes, not string prefixes.

Open charypar opened this issue 5 years ago • 0 comments

When filtering changed files to components (https://github.com/charypar/monobuild/blob/104deb915d1c466d68afd5aa520f769a6b9e12ae/manifests/manifests.go#L144) the paths are matched on a sub-string. This sometimes mismatches components if they share a common sub-string (e.g. my-component and my-component-v2).

The correct way is to split the path to individual segments and look for a sub-list.

This is also the cause of issue fixed by https://github.com/charypar/monobuild/pull/18.

charypar avatar Dec 15 '19 19:12 charypar