Recommended platform: [] and version 2 format

Just sharing information.

When talking with a person in modularity team, I have told that for a
module config yaml file's below elements, the empty array "[]" was
recommended on Fedora.


Because when platform is "[]", the module is built on current
supported platforms (right now f28, f29, and f30). The binary of the
module are prepared for each platform.
I hope the document is updated including this recommended setting as a
best practice.

diff --git a/ruby.yaml b/ruby.yaml
tracker: <a href="" title=""></a>
- buildrequires:
- platform: [f29]
+ platform: []
- platform: [f29]
+ platform: []

Also seeing several modules' config YAML files, some config files are
still version 1.
I like to share that we can use the version 2, changing the /version
element from 1 to 2.

Version 2 spec:
<a href="" title=""></a>



Re: Recommended platform: [] and version 2 format

By Adam Samalik at 09/12/2018 - 05:07

That's right!

This and more is documented in the Modularity section of Fedora Docs:
<a href="" title=""></a>

Re: Recommended platform: [] and version 2 format

By Jun Aruga at 09/14/2018 - 11:58

Thanks for explaining about it!
I found the part of "platform: []" in the document you shared.
<a href="" title=""></a>


On Wed, Sep 12, 2018 at 11:07 AM, Adam Samalik < ... at redhat dot com> wrote: