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

How can app handle unrelased release date in metada #570

Open
ghost opened this issue Dec 29, 2023 · 1 comment · May be fixed by #650
Open

How can app handle unrelased release date in metada #570

ghost opened this issue Dec 29, 2023 · 1 comment · May be fixed by #650

Comments

@ghost
Copy link

ghost commented Dec 29, 2023

I've noticed that some app developers use a metadata file to prepare release notes for versions that have not yet been released.

      <release version="3.1.0" date="2023-12-XX">
        <description translatable="no">
          <p>This is a minor release of Impression with a few small improvements.</p>
        </description>
      </release>

Of course, appstreamcli can't validate these dates.

W: @app-id@:68: invalid-iso8601-date 2023-12-XX
   The AppStream specification requires a complete, ISO 8601 date string with at least
   day-granularity to denote dates. Please ensure the date string is valid.

Could you offer me a way that developers can use a metadata file to prepare release notes without breaking validation?

@ximion
Copy link
Owner

ximion commented Dec 29, 2023

We can potentially ignore the date requirement if the release type is snapshot, so if that is set, people can just leave out the date and add it once the release is ready...

gnomesysadmins pushed a commit to GNOME/nautilus that referenced this issue Jan 10, 2024
Although build date is wrong for releases, we still need a date between
releases to pass appstream validation.

Partly revert commit b7e4400

To make it easy for future releases, provide copy-pastable templates and
introduce release type attributes.

In the future we may want to use the new "snapshot" type and drop the
date, as per ximion/appstream#570

Reference: https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Releases.html
gnomesysadmins pushed a commit to GNOME/nautilus that referenced this issue Jan 10, 2024
Although build date is wrong for releases, we still need a date between
releases to pass appstream validation.

Partly revert commit b7e4400

To make it easy for future releases, provide copy-pastable templates and
introduce release type attributes.

In the future we may want to use the new "snapshot" type and drop the
date, as per ximion/appstream#570

Reference: https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Releases.html
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 a pull request may close this issue.

1 participant