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.

Comments

Murz created an issue. See original summary.

murz’s picture

Status: Active » Needs review
StatusFileSize
new1009 bytes

I attach patch, that rename file and change shell script to new file extension format. Please review it.

murz’s picture

Improved version of patch, also fix PHP function for generate subtheme.

vladimiraus’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.95 KB

Updated the patch to match latest dev.

  • VladimirAus committed 84bb91f on 8.x-1.x authored by Murz
    Issue #3129532 by Murz, VladimirAus: Fix Drupal.org packaging script...
vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.