Re: Why no git --depth=1 option for makepkg?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 03/03/18 08:48, mike lojkovic via arch-general wrote:
> It would be extremely nice to have shallow clone support for some packages.
> The Unreal git repo requires pulling down 20 gigabytes for a build, taking
> maybe a half hour each time.
> 

An effective workaround is to create a shallow clone prior to running
makepkg,

$ cd $SRCDEST
$ git clone --bare --depth=1 https://github.com/cisco/ChezScheme.git
ChezScheme
$ cd ChezScheme
$ git config remote.origin.fetch "+refs/*:refs/*"

and away you go.

However.

You can't just use --depth=1 on everything without running into "weird"
problems. For example, any VCS package that relies on tags for its
pkgver will fail to find the last tagged commit, and so the fetch depth
must be increased to extend to the tagged commit.

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux