Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Add missing repo from hardcoded consts #37

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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";
}