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

Don't freak out if a package has an empty or short Date #4280

Merged
merged 1 commit into from
Feb 22, 2021

Conversation

fingolfin
Copy link
Member

Fixes a regression from PR #3355.

I've had a package prototype sitting around with an empty Date field.
While of course the validator rejects that, the package loading code
should not, or at least should not run into a break loop.

No test case, but I think the problem and fix are obvious.

I've had a package prototype sitting around with an empty Date field.
While of course the validator rejects that, the package loading code
should not, or at least should not run into a break loop.
@fingolfin fingolfin added regression A bug that only occurs in the branch, not in a release topic: packages issues or PRs related to package handling, or specific to a package (for packages w/o issue tracker) labels Feb 22, 2021
Copy link
Member

@olexandr-konovalov olexandr-konovalov left a comment

Choose a reason for hiding this comment

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

OK, I agree!

@olexandr-konovalov olexandr-konovalov added the release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes label Feb 22, 2021
Copy link
Contributor

@wucas wucas left a comment

Choose a reason for hiding this comment

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

Yes that's an unfortunate (and somewhat embarrassing) oversight on my part (not checking all assumptions of the code^^). But the fix looks sensible to me.

@olexandr-konovalov olexandr-konovalov merged commit 0158ea4 into gap-system:master Feb 22, 2021
@fingolfin fingolfin deleted the mh/fix-pkg-date branch February 23, 2021 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression A bug that only occurs in the branch, not in a release release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: packages issues or PRs related to package handling, or specific to a package (for packages w/o issue tracker)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants