Skip to content

Commit

Permalink
FIX Add missing repo from hardcoded consts (#37)
Browse files Browse the repository at this point in the history
* FIX Add missing repo

* MNT Avoid missing repos in the future
  • Loading branch information
GuySartorelli authored Nov 14, 2022
1 parent 88abe2b commit 728bef5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions consts.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,5 +328,6 @@
'silverstripe-versionfeed' => '2.3',
'silverstripe-webauthn-authenticator' => '4.6',
'silverstripe-widgets' => '2.3',
'silverstripe-gridfieldextensions' => '3.5',
],
];
9 changes: 9 additions & 0 deletions hardcoded.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

0 comments on commit 728bef5

Please sign in to comment.