You are not logged in.

#1 2019-07-16 19:59:53

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

PKGBUILD/git as a source defining both branch and commit [SOLVED]

According to this wifi page, I can define a git source and specify the branch.  I also see the deluge package define a specific commit in a like fashion, is there a way I can combine the two in my source array so I can define both the branch and a specific commit?

I tried stacking them but makepkg did not like that.

This works:

mycoolname::git+https://github.com/me/project.git#branch=coolfeature

This works:

source=("git://git.deluge-torrent.org/deluge.git#commit=$_commit")

This does not:

mycoolname::git+https://github.com/me/project.git#branch=coolfeature#commit=$_commit

Last edited by graysky (2019-07-16 21:05:43)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2019-07-16 20:40:12

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,426
Website

Re: PKGBUILD/git as a source defining both branch and commit [SOLVED]

It doesn't make sense to have both, just use the commit (or merge commit) id.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2019-07-16 21:05:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: PKGBUILD/git as a source defining both branch and commit [SOLVED]

<<HEADSMACK>> I didn't realize the commits were independent of branch but that makes sense now that I think about it.  Thank you!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB