git submodules

Joshua Root jmr at macports.org
Sat Feb 1 22:29:58 UTC 2020


On 2020-2-2 07:10 , Christopher Jones wrote:
> HI,
> 
> If there is really no way to get everything via a tarball, one way is to
> configure the port to fetch directly from git clone and not a tar ball,
> and then in a post-fetch block run the git submodule init. See eg.
> 
> https://github.com/macports/macports-ports/blob/master/devel/ccls/Portfile
> 
> as a randomly picked example. 
> 
> Its not ideal, as for instance it by-passes macports checksum checks for
> instance, but if there is no other way …

Let the upstream project know that their tarballs are pretty much
useless if they don't include the submodules' code. This is one of
several reasons to generate actual release tarballs and not just rely on
GitHub/GitLab's auto-generated ones.

- Josh


More information about the macports-dev mailing list