[aur-general] please add -depth 1 to makepkg git clone

Daniel Wallace danielwallace at gtmanfred.com
Sat Apr 6 01:34:39 EDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Tai-Lin Chu <tailinchu at gmail.com> wrote:

>1. you can still pull, so it will not be a reason to go against it
>
>>This is also true. makepkg clones a bare repository to the SRCDEST
>>directory. If this is a shallow bare repo, then clones cannot be made
>of
>>it which is what makepkg does.
>
>2. ... i dont think why it needs to use git clone. using cp is good
>enough...
>
>On Fri, Apr 5, 2013 at 7:05 PM, William Giokas <1007380 at gmail.com>
>wrote:
>> On Fri, Apr 05, 2013 at 06:47:55PM -0700, Tai-Lin Chu wrote:
>>> makepkg only needs the latest git snapshot
>>> there are only 2 cases that wont work:
>>> 1. revert git commit
>>> 2. count # of revisions
>>>
>>> > Won't work as you can't clone shallow repositories, which makepkg
>>> > needs to do to create the working copy for the build.
>>
>> This is also true. makepkg clones a bare repository to the SRCDEST
>> directory. If this is a shallow bare repo, then clones cannot be made
>of
>> it which is what makepkg does.
>>
>> Thanks,
>> --
>> William Giokas | KaiSforza
>> GnuPG Key: 0x73CD09CF
>> Fingerprint: F73F 50EF BBE2 9846 8306  E6B8 6902 06D8 73CD 09CF

This is dumb because using cp is not enough, you should be using git clone because it is git and straight from git, if you goal is to just use the newest you are doing it wrong go write you own pkgbuild. The only reason to use git packages is if you are deving upstream and want to actively test development of upstream packages... Or if up stream is dumb enough to never tag stable releases. Fortunately there are very few of the latter, so to support the majority of of users we clone the whole thing.  You are welcome to use the old method if you are so naive to believe that people will actually benefit from a true shallow clone of a git repository though yaourt. Because no one should ever install a git I ask age through yaourt because it is deleted immediately.
- --
Sent from my Android Phone.
Daniel Wallace
Arch Linux Trusted User
GTManfred
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8

iQFUBAEBCAA+BQJRX7PvNxxEYW5pZWwgV2FsbGFjZSAoZ3RtYW5mcmVkKSA8ZGFu
aWVsLndhbGxhY2VAZ2F0ZWNoLmVkdT4ACgkQX6XlVE8BDUjm8ggAkOdV8r/bQHy9
mE1XtFAu6T+j83leaRugchsK9sIzKAKjfEHThpfO/nG6MBVPNytjqVhgyqrsHgr9
1ItAl3VrdbjFmQpRplBvYz8dAkid5pq2ZdG9f/ildROkirxCzPkevCjTenmouxY6
oY4vXUFthc7WOtviaQ1U9+pSmgrzTWvCrzlyZG1tPRlxRVYDHTPpVzxhtOrExUhy
rAF6MOry5u3tww/mHigNwQPW6kVVh1nB5lWhoJ5PIY7cENKXJP7o+npV2Hb9TCGr
djrFOCg+ZaeeX/gK93cI6BigiF5XdAFnPhpiQpoLXvUiD050bOoj5d7tKb+be7Ba
FGrXvqNPlg==
=EBW2
-----END PGP SIGNATURE-----



More information about the aur-general mailing list