Problem/Motivation
In Drupal 11.2.5, I ran the composer update for this theme. It changed the composer.json configuration for this theme to 1.12. I cleared cache entirely. I ran database updates. I verified with drush ev that 1.12 is being used. Everything in CLI and codebase points to 1.12 being used.
I am using a subtheme so I don't know if there is a separate process for updating a subtheme. If I switch to Civic as default, however, it still thinks it's 1.11.
When I open Drupal, there is a site warning that I need to update this theme to 1.12. On Available Updates page, it shows that 1.11 is installed and 1.12 needs to be installed.
Steps to reproduce
In a local dev. environment, install Drupal 11.2.5. First install Civic Theme 1.11, then create a subtheme. Enable the subtheme as default. Update to 1.12 using composer.
Comments
Comment #2
ronraney commentedInspecting my subtheme info.yml file, I found this:
I don't know how it was added. It may be part of the process of creating a subtheme.
By removing this section of code, it resolved the issue.
Comment #3
richardgaunt commentedComment #4
richardgaunt commentedNow I understand. I thought it was not present at all.
But it seems the packaging system for CivicTheme adds the packaging version information to every `.info.yml` and so when you create a sub-theme this carries across.
The fix would be to remove this version information from the civictheme_starter.info.yml file when sub-theme is generated.
Comment #5
richardgaunt commentedComment #6
richardgaunt commentedAdded a PR which will filter out this information on creation of sub-theme.
https://github.com/civictheme/monorepo-drupal/pull/1445
Your manual fix (of removing it from your sub-theme) will suffice for your purposes. Thanks for creating the issue.
Comment #7
richardgaunt commentedComment #8
fionamorrison23 commentedComment #9
cbDownloaded CivicTheme zip from DO.
Ran the script to create a new subtheme.
Confirmed presence of build info in the subtheme info.yml
Replaced the CivicTheme subtheme script with this one from this PR.
Ran the script to create a new subtheme.
Confirmed absense of build info in the subtheme info.yml
Perfect.
This looks good.
Comment #11
richardgaunt commentedComment #12
richardgaunt commented