diff --git a/consts.php b/consts.php index 2b52f83..9267a10 100644 --- a/consts.php +++ b/consts.php @@ -328,5 +328,6 @@ 'silverstripe-versionfeed' => '2.3', 'silverstripe-webauthn-authenticator' => '4.6', 'silverstripe-widgets' => '2.3', + 'silverstripe-gridfieldextensions' => '3.5', ], ]; diff --git a/hardcoded.php b/hardcoded.php index 353326b..75f23da 100644 --- a/hardcoded.php +++ b/hardcoded.php @@ -50,3 +50,12 @@ function parseNode(string $name, stdClass $node, array &$versions) foreach ($versions as $repoName => $version) { echo " '$repoName' => '$version',\n"; } + +// Find any repositories which were in the previous version that aren't in this one +$missing = array_diff(array_keys(INSTALLER_TO_REPO_MINOR_VERSIONS[array_key_last(INSTALLER_TO_REPO_MINOR_VERSIONS)]), array_keys($versions)); +if (!empty($missing)) { + $formatColor = "\033[31m"; + $endFormat = "\033[0m"; + echo "\n" . $formatColor . 'Warning: The following modules were in the last release in INSTALLER_TO_REPO_MINOR_VERSIONS but are missing from .cow.pat.json:' . $endFormat . "\n"; + echo implode("\n", $missing) . "\n"; +}