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.
/data/dependencies/buildrequires/platform
/data/dependencies/requires/platform
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="https://bugs.ruby-lang.org/" title="https://bugs.ruby-lang.org/">https://bugs.ruby-lang.org/</a>
dependencies:
- buildrequires:
- platform: [f29]
+ platform: []
requires:
- platform: [f29]
+ platform: []
components:
# SRPMs
rpms:
```
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="https://github.com/fedora-modularity/libmodulemd/blob/master/spec.v2.yaml" title="https://github.com/fedora-modularity/libmodulemd/blob/master/spec.v2.yaml">https://github.com/fedora-modularity/libmodulemd/blob/master/spec.v2.yaml</a>
Regards,
Comments
Re: Recommended platform: [] and version 2 format
By Adam Samalik at 09/12/2018 - 04:07That's right!
This and more is documented in the Modularity section of Fedora Docs:
<a href="https://docs.fedoraproject.org/en-US/modularity/making-modules/defining-modules/" title="https://docs.fedoraproject.org/en-US/modularity/making-modules/defining-modules/">https://docs.fedoraproject.org/en-US/modularity/making-modules/defining-...</a>
Re: Recommended platform: [] and version 2 format
By Jun Aruga at 09/14/2018 - 10:58Thanks for explaining about it!
I found the part of "platform: []" in the document you shared.
<a href="https://docs.fedoraproject.org/en-US/modularity/making-modules/defining-modules/#_modular_dependencies" title="https://docs.fedoraproject.org/en-US/modularity/making-modules/defining-modules/#_modular_dependencies">https://docs.fedoraproject.org/en-US/modularity/making-modules/defining-...</a>
Jun
On Wed, Sep 12, 2018 at 11:07 AM, Adam Samalik < ... at redhat dot com> wrote: