At now _SUBTHEME folder contains SUBTHEME.info file, that seems toched via Drupal.org packaging script touch, because after downloading via Composer I see those contents in it:
name: SUBTHEME
type: theme
description: 'SUBTHEME subtheme'
core: 8.x
base theme: bootstrap4
# Libraries.
libraries-override:
bootstrap4/global-styling: SUBTHEME/global-styling
# Regions.
regions:
header: Header
nav_branding: 'Navigation branding region'
nav_main: 'Main navigation region'
nav_additional: 'Additional navigation region (eg search form, social icons, etc)'
breadcrumb: Breadcrumbs
content: 'Main content'
sidebar_first: 'Sidebar first'
sidebar_second: 'Sidebar second'
footer: Footer
; Information added by Drupal.org packaging script on 2020-03-28
version = "8.x-1.0-rc5"
core = "8.x"
project = "bootstrap4"
datestamp = "1585405282"
And I got InfoParserException after creating subtheme with error:
Drupal\Core\Extension\InfoParserException: Unable to parse themes/contrib/test2/test2.info.yml Unable to parse at line 24 (near "version = "8.x-1.0-rc5""). in Drupal\Core\Extension\InfoParserDynamic->parse() (line 53 of core/lib/Drupal/Core/Extension/InfoParserDynamic.php).
Seems this is package script for Drupal 7.x modules (old format of .info file), that don't detect that this module is for 8.x.
Solution for this problem, I hope, can be change .info file extension to something else, eg .info._yml, so I will try to fix this via patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | bootstrap4-fix_drupal_package-3129532-4.patch | 1.95 KB | vladimiraus |
| #3 | bootstrap4-fix_drupal_package-3129532-3.patch | 1.92 KB | murz |
| #2 | bootstrap4-fix_drupal_package-3129532-2.patch | 1009 bytes | murz |
Comments
Comment #2
murzI attach patch, that rename file and change shell script to new file extension format. Please review it.
Comment #3
murzImproved version of patch, also fix PHP function for generate subtheme.
Comment #4
vladimirausUpdated the patch to match latest dev.
Comment #6
vladimiraus