From e48252b953beabc585cc9d1b37626aec325877ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenneth=20S=C3=B6derlund?= Date: Sat, 3 Jan 2026 15:05:09 +0200 Subject: [PATCH] chore: fix the jj command to return tag correctly Previous command didn't return anything if the main branch wasn't the immediate parent of the current working copy. Now we get the correct tag wherever we run just install. --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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