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

Allow CRLF files in /tests/fixtures/ directories #205

Merged
merged 2 commits into from
Sep 9, 2022

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Sep 8, 2022

In #203 it was proposed to allow CRLF files in Moodle, because the original CSV specs say that those files should be CRLF.

But in practice, nowadays hardly any file is CRLF and, specifically for Moodle, we have banned them in core since the night of the times.

And we should continue not allowing them. Hence we are only allowing those CRLF CSV files within the /tests/fixtures/ directories, that way if anybody wants to test their CSV loaders with CRLF, they can have some fixtures at hand.

Everywhere else, they will continue being forbidden.

Fixes #203

@stronk7
Copy link
Member Author

stronk7 commented Sep 8, 2022

Have added one extra commit, unrelated to the issue being fixed here, but that updates the GHA environment to current supported Ubuntu 22.04. It shouldn't affect the outcome, let's see.

In moodlehq#203 it was proposed to allow CRLF files in Moodle, because
the original CSV specs say that those files should be CRLF.

But in practice, nowadays hardly any file is CRLF and, specifically
for Moodle, we have banned them in core since the night of the times.

And we should continue not allowing them. Hence we are only allowing
those CRLF CSV files within the /tests/fixtures/ directories, that
way if anybody wants to test their CSV loaders with CRLF, they can
have some fixtures at hand.

Everywhere else, they will continue being forbidden.

Fixes moodlehq#203
Since some time ago, GH is warning us that the Ubuntu 18.04
environment is deprecated:

"The ubuntu-18.04 environment is deprecated, consider switching to
ubuntu-20.04(ubuntu-latest), or ubuntu-22.04 instead...."

Hence, we are bumping here, to be able to cerify if everything
continues working ok
Copy link
Contributor

@timhunt timhunt left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks Eloy.

@stronk7 stronk7 merged commit b9624b8 into moodlehq:master Sep 9, 2022
@stronk7 stronk7 deleted the allow_crlf_in_fixtures branch September 9, 2022 15: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.

Incorrect checks applied to CSV files
2 participants