You are not logged in.
My PKGBUILD stopped pulling the latest git source on Github. After investigation, I discovered the repo owner renamed main to master - master was pointing to an older commit, main was pointing to the most recent. makepkg was still using master by default. I can modify the git source to pull main with a branch fragment in the URL, but is makepkg configured to use master by default, or is it a git setting? Is this configurable?
Last edited by oinkl (2021-04-23 06:14:22)
Offline
I solved it by deleting the previously downloaded git sources in the directory, which was still using the old default branch, and would just keep pulling that branch on update. After deleting and re-running makepkg, it used the new default branch, main.
Offline
One "defensive programming" approach would be to explicitly include some `git checkout <branch>` in the prepare() function, in case you wish to have more specificity than whatever the git server considers the default branch.
Last edited by adlai (2022-12-18 07:22:15)
Offline
One "defensive programming" approach would be to explicitly include some `git checkout <branch>` in the prepare() function, in case you wish to have more specificity than whatever the git server considers the default branch.
No, you read the man page or the VCS package guideslines in the wiki and specify the branch as part of the source.
Offline