Closed meschenbaum closed 2 years ago
@kreynen Tim verified this in our call that he was having the same issue of the theme not updating. Deleting the theme folder and re-running composer install
did install the correct theme version.
We're not sure what is causing this or what the solution may be. It may be resolved if moved it to packagist or something.
The problem is that the .git dir is being included in the build and thus not picked up when the project is updated.
Not sure why that happens for cu_base and not https://github.com/cu-uis/cu-starterkit-project/blob/master/composer.json#L17, but this is the reason why the cu_base dir needs to be manually deleted
https://stackoverflow.com/questions/25981292/how-to-make-composer-not-create-a-git-directory-for-a-package suggests a few different ways to fix this.
Fixed by changing reference in composer.json
@kreynen @johnquest can you two check if this change will update the CU Base theme to the latest 1.0.3 tag?
I responded in Teams, but updating the version in the info.yml will surface the version in the Drupal UI AND with any any dependencies. I opened https://github.com/cu-uis/cu_base/pull/13. Even when this is managed by Packagist, the version needs to be maintained in both places.
This is one of many things Drupal.org does for projects.
I successfully updated the code via the pantheon dashboard with the branch set to "expose-version-in-ui" in the cu_base repo.
Describe the bug When the CU Base theme issues a new tag and the starter kit composer is updated to include the new tag, composer does not overwrite the files if the theme already exists. This has been reported by Matt E. and Tim Stalker.
To Reproduce Steps to reproduce the behavior:
composer install
Expected behavior When the composer is updated to use a newer version, I expect it to overwrite the files in the theme directory with the newer code.
This was happening on local environments and Tim noted this on his test sites.