Best way to get submodules into extracted source?
Zhenfu Shi
szf1234 at me.com
Fri May 22 20:04:14 UTC 2020
Thank you. this indeed works for transmission-x11 but not for transmission, because the release tarball only has some of the submodules. Maybe I’ll ask the dev to see if he can provide a complete one.
> On May 22, 2020, at 15:42, Joshua Root <jmr at macports.org> wrote:
>
> On 2020-5-23 05:16 , Zhenfu Shi via macports-dev wrote:
>> Hey guys,
>> I’m trying updating transmission(-x11) to just-released version 3.0, but it uses a lot of 3rd party submodules. I found the macports guide reads "the best distfile candidate (if available) is a distfile from GitHub releases”, so I’d like to know what’s the best way to put submodules into the extracted tarball, without using `fetch.type git` and `git submodule update —init`. Would be great if there’s a port already doing this so I could learn from it.
>
> GitHub's auto-generated tarballs do not contain submodules, which is
> just one of the many reasons why projects should upload proper release
> tarballs. Fortunately, transmission does this, so it's just a matter of
> setting `github.tarball_from releases` and `use_xz yes`.
>
> - Josh
More information about the macports-dev
mailing list