Moz yaml: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== In-Tree Annotations of Third-Party Code (moz.yaml) == All third-party code in mozilla-central should have an associated '''moz.yaml''' file containing metadata including t...") |
(→How?: fix link to template) |
||
Line 9: | Line 9: | ||
=== How? === | === How? === | ||
* Using the [https://searchfox.org/mozilla-central/ | * Using the [https://searchfox.org/mozilla-central/search?q=Third-Party+Library+Template&path=&case=false®exp=false example moz.yaml file from the top of moz_yaml.py] or [https://searchfox.org/mozilla-central/search?q=moz.yaml&path= an existing moz.yaml file] as a template create a moz.yaml in the top level directory of your third-party code. | ||
** The "bugzilla" and "origin" sections must be provided | ** The "bugzilla" and "origin" sections must be provided | ||
** The "vendoring" section is optional and is not currently used | ** The "vendoring" section is optional and is not currently used |
Revision as of 05:24, 27 June 2020
In-Tree Annotations of Third-Party Code (moz.yaml)
All third-party code in mozilla-central should have an associated moz.yaml file containing metadata including the origin and Bugzilla component.
Why?
- Provides consistency and discoverability to third-party code, its origin (repository, version, SHA, etc), and Mozilla-local modifications
- Simplify the process for auditing vendorerd versions and licenses
- Establish a structure which allows automation to drive vendoring
How?
- Using the example moz.yaml file from the top of moz_yaml.py or an existing moz.yaml file as a template create a moz.yaml in the top level directory of your third-party code.
- The "bugzilla" and "origin" sections must be provided
- The "vendoring" section is optional and is not currently used
- The design document for the moz.yaml format is available on google docs
- Verify the manfiest with mach vendor manifest --verify path/to/moz.yaml
- If you require assistance or a review of your moz.yaml file reach out to glob@mozilla.com (glob on IRC/Slack)