cu-uis / cu-starterkit-project

Development repository for Pantheon's recommended (future) Drupal 9+ upstream
1 stars 2 forks source link

Bug - twbs/bootstrap no longer exists... can't be moved. Composer build fails #101

Closed kreynen closed 2 years ago

kreynen commented 2 years ago

Describe the bug

Build fails due to removing the bootstrap dependency with Barrio.

By removing Barrio, we removed https://git.drupalcode.org/project/bootstrap_barrio/-/blob/5.x/composer.json#L7

https://github.com/cu-uis/cu_base/blob/main/composer.json#L7 exists, but I don't think that dependency is being processed because of the non-Packagist way we are adding cu_base in https://github.com/cu-uis/cu-starterkit-project/blob/master/composer.json#L30

As a result the script that moves the twbs/bootstrap library fails.

> mkdir -p web/libraries/bootstrap
> cp -R vendor/twbs/bootstrap/dist web/libraries/bootstrap
cp: cannot stat 'vendor/twbs/bootstrap/dist': No such file or directory
Script cp -R vendor/twbs/bootstrap/dist web/libraries/bootstrap handling the post-install-cmd event returned with error code 1

This only fails locally if you delete the /vendor dir completely before running a clean composer install