mach-vendor: Download release artifacts from Github instead of git-archive exports
Categories
(Developer Infrastructure :: Mach Vendor & Updatebot, enhancement)
Tracking
(firefox116 fixed)
| Tracking | Status | |
|---|---|---|
| firefox116 | --- | fixed |
People
(Reporter: rjl, Assigned: rjl)
References
Details
Attachments
(1 file, 1 obsolete file)
Update mach vendor to be able to use release artifacts from Github projects as an alternative to the git archive tar files currently supported.
Use case:
Thunderbird vendors librnp from https://github.com/rnpgp/rnp. Version 0.17.0 added a Git submodule to the repository: https://github.com/rnpgp/sexp. It's a library maintained by the same organization and was recently spun out from RNP into its own project.
Mach vendor does not handle subrepos. The RNP developers are providing complete source tar files as Github release artifacts that include the submodule.
| Assignee | ||
Comment 1•3 years ago
|
||
The plan is to add an optional "release-artifact" field to the "vendoring" section of the manifest. If the field is present, it's used to build a download URL instead of the git-archive export URL currently used.
Initial implementation will support Github only.
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 2•3 years ago
|
||
The Github repos API can also look up tags by tag name and provide
the timestamp as required.
In the case where the latest tag is unknown, there is a "tags" endpoint
that lists all known tags, latest first. Once the tag name is known, the
timestamp can be looked up as above.
This change means Github API calls are used when checking for updates and
it's no lohger necessary to clone the entire repository to look for a new
version.
| Assignee | ||
Comment 3•3 years ago
|
||
If a Github project provides source tar files as release artifacts, allow
using them as an alternative to git-archive exports. This is useful when
a Git repository uses submodules, which are not part of the auto-generated
archive exports.
Depends on D177333
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 5•3 years ago
|
||
| bugherder | ||
Description
•