You are not logged in.

#26 2018-10-08 09:06:57

Ataraxy
Member
Registered: 2016-11-21
Posts: 10

Re: Made a Git package which always pulls and builds latest tag.

rilian-la-te wrote:

It will be good, but I want such -dyn packages to allow always cally the latest tag (or latest from selected tags), not just specific tag.

Is some text missing before "cally"?

You could dynamically return any tag / branch from the function _get_tag_or_branch_to_build.

I did a deep dive into how to get sorted tags without downloading any git objects here.

Of course, use pkgver() to generate a version based upon the variable you captured from _get_tag_or_branch_to_build.

Offline

#27 2018-10-08 09:24:22

rilian-la-te
Member
Registered: 2012-08-24
Posts: 42

Re: Made a Git package which always pulls and builds latest tag.

Is some text missing before "cally"?

cally is a typo for "call"

I mean than I want package, which PKGBUILD contain some tag pattern, and all tags will retreived on build and conforming tag with latest date should be chosen.

Offline

#28 2018-10-08 09:36:08

Ataraxy
Member
Registered: 2016-11-21
Posts: 10

Re: Made a Git package which always pulls and builds latest tag.

git -c 'versionsort.suffix=-' ls-remote -t --exit-code --refs --sort=-v:refname \
    https://github.com/robert7/nixnote2 'v*' \
    | sed -En '1!q;s/^[[:xdigit:]]+[[:space:]]+refs\/tags\/(.+)/\1/gp'  
v2.1.0-beta4g

Where 'v*' is your pattern.

Explanation here.

Offline

#29 2018-10-08 09:37:29

rilian-la-te
Member
Registered: 2012-08-24
Posts: 42

Re: Made a Git package which always pulls and builds latest tag.

thanks.

Offline

Board footer

Powered by FluxBB