Skip to content

Add a case for incompatible Perl package versions in check_modules.pl.#3013

Merged
somiaj merged 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:check-modules-incompatible-versions
Jun 10, 2026
Merged

Add a case for incompatible Perl package versions in check_modules.pl.#3013
somiaj merged 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:check-modules-incompatible-versions

Conversation

@drgrice1

@drgrice1 drgrice1 commented Jun 9, 2026

Copy link
Copy Markdown
Member

Any package can have an incompatibleVersions flag whose value should be a reference to an array of version strings. If the version on the system of a package is one of these versions, then check_modules.pl will warn about it.

Mojolicious now has this set for versions 9.43, 9.44, 9.45, and 9.46.

Also remove unneeded quotes on left operands of a fat comma and hash keys. I missed these when they were added in #2893. I left the quotes on the single word package names which also don't need them, but this is consistent with the other package names that do.

Note that the primary changes (the ones not just removing unneeded quotes) are lines 682 - 690, and the addition of the key for the Mojolicious package on line 354.

Any package can have an `incompatibleVersions` flag whose value should
be a reference to an array of version strings.  If the version on the
system of a package is one of these versions, then `check_modules.pl`
will warn about it.

`Mojolicious` now has this set for versions 9.43, 9.44, 9.45, and 9.46.

Also remove unneeded quotes on left operands of a fat comma and hash
keys.  I missed these when they were added in openwebwork#2893.  I left the quotes
on the single word package names which also don't need them, but this is
consistent with the other package names that do.

@Alex-Jordan Alex-Jordan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went to Mojolicious 9.45 and this caught it. Back to 9.42 and I passed the check.

@somiaj somiaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not able to test if it catches bad versions of mojolicious, but the script works just fine for me with a valid version.

@somiaj

somiaj commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Going to accept @Alex-Jordan that it correctly catches the bad versions.

@somiaj somiaj merged commit 65def78 into openwebwork:WeBWorK-2.21 Jun 10, 2026
2 checks passed
@drgrice1 drgrice1 deleted the check-modules-incompatible-versions branch June 11, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants