-
Notifications
You must be signed in to change notification settings - Fork 114
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
Treat future date & timestamp in <release> as errors #512
Comments
Example: $ git diff data/metainfo/org.gnome.Software.metainfo.xml.in
diff --git a/data/metainfo/org.gnome.Software.metainfo.xml.in b/data/metainfo/org.gnome.Software.metainfo.xml.in
index 8cecc67ce..4f421b6db 100644
--- a/data/metainfo/org.gnome.Software.metainfo.xml.in
+++ b/data/metainfo/org.gnome.Software.metainfo.xml.in
@@ -66,7 +66,7 @@
Validate with `appstreamcli validate *.metainfo.xml`
-->
<releases>
- <release date="2023-08-04" version="44.4" type="stable">
+ <release date="2033-08-04" version="44.4" type="stable">
<description>
<p>This is a stable release with the following changes:</p>
<ul> $ appstreamcli validate --pedantic data/metainfo/org.gnome.Software.metainfo.xml.in
P: org.gnome.Software.desktop:4: cid-contains-uppercase-letter org.gnome.Software.desktop
I: org.gnome.Software.desktop:2298: nonstandard-gnome-extension kudos
✔ Validation was successful: infos: 1, pedantic: 1 |
You would think that, but when we validated that in the bast, we got tons of complaints by people who were staging future dates for later release and suddenly had invalid files. So we actually removed the date validation ages ago. |
Okay. Is it possible to add the validation in We should have valid dates at that stage, right ? |
I think we can do the following:
Folks who want to disable time checks due to the reasons mentioned above can use the In contrast, downstream package maintainers who maintain SPEC files ( Fedora etc ), debian/rules ( Debian etc ) or the equivalent in other distros will not need the I'm not sure how things work in the flatpak / flathub space, but I assume the above can be applied there as well. |
Does the above sound reasonable ? |
We've (Kodi) run into problems with checks like this before, cause we had a team member from australia (or the future) doing a release and flathub didn't like that. I guess the important fact is that everything would need to be utc/zulu time to work (obviously) Still, kinda hard to make release managers think about utc dates and not their local date. |
Some background on this issue: https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2262
GNOME Software ( and possibly others ) rely a lot on the date / timestamp provided in the
<release>
tag. Values in the future are clearly wrong, and they have caused issues with GNOME Software.appstreamcli validate
checks.appstream-generator
as well.The text was updated successfully, but these errors were encountered: