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

Add strict to modules shared to the PG safe zone in pg_config.dist.yml #995

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

drgrice1
Copy link
Member

Versions of Perl prior to 5.34 need this. Otherwise warnings are issue by the BEGIN { strict->import } approach now used in place of the old BEGIN { be_strict() } approach.

Note that this is not used by webwork2, but the standalone renderer will need this (if anyone runs that with an older perl version). So the standalone renderer will also need to update its distributed pg_config.yml file.

Also change Main to main in the translator. I can't resist fixing this any longer. The proper namespace is main. This is also used inconsistently in Translator.pm. Other than these two instances main is used everywhere else.

This is related to (but not needed to fix) the issue brought up in #968 (comment).

…yml.

Versions of Perl prior to 5.34 need this.  Otherwise warnings are issue
by the `BEGIN { strict->import }` approach now used in place of the old
`BEGIN { be_strict() }` approach.

Note that this is not used by webwork2, but the standalone renderer will
need this (if anyone runs that with an older perl version).  So the
standalone renderer will also need to update its distributed
pg_config.yml file.

Also change `Main` to `main` in the translator.  I can't resist fixing
this any longer.  The proper namespace is `main`.  This is also used
inconsistently in `Translator.pm`.  Other than these two instances
`main` is used everywhere else.
Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

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

Didn't test this, but looks good.

@pstaabp pstaabp merged commit e0d0030 into openwebwork:develop Feb 7, 2024
2 checks passed
@drgrice1 drgrice1 deleted the pg-strict-share branch February 8, 2024 00:52
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