Skip to content

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

Merged
olexandr-konovalov merged 1 commit intogap-system:masterfrom
fingolfin:mh/fix-pkg-date
Feb 22, 2021
Merged

Don't freak out if a package has an empty or short Date#4280
olexandr-konovalov merged 1 commit intogap-system:masterfrom
fingolfin:mh/fix-pkg-date

Conversation

@fingolfin
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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