diff --git a/justfile b/justfile index dd50056..6204a14 100644 --- a/justfile +++ b/justfile @@ -1,4 +1,4 @@ -version := `jj log --no-graph -r @ -T 'parents.map(|c| c.tags())'` +version := `jj log --no-graph -r 'latest(::@ & tags())' -T 'tags'` commit := `jj log -T 'commit_id.short() ++ "\n"' --no-graph | head -n1` buildDate := `date -u '+%Y-%m-%dT%H:%M:%SZ'` ldflags := "-s -w -X github.com/soderluk/nirimgr/config.Version=" + version + " -X github.com/soderluk/nirimgr/config.CommitSHA=" + commit + " -X github.com/soderluk/nirimgr/config.BuildDate=" + buildDate