Hi, I am tagging my releases with stable-main and v1.0.xxx and I have this config in my workspace.edn
:tag-patterns {:stable "stable-*"
:release "v[0-9]*"}
But somehow poly info always shows me stable since the initial commit of the repo... What am I doing wrong?git log shows this e61a375 (tag: refs/tags/v1.0.268, tag: refs/tags/stable-main) [skip ci] Updating version
and poly info shows this stable since: 9671a02
How are you tagging the stable-main?
I had a similar issue but it was due to the CI/CD run doing the update of stable-main tag and my local checkout not having it
git fetch --tags --force
would update the stable-main tag with the correct sha.
Do you see the same issue when you do a fresh checkout?I did that and as above mentioned on my local machine the git log shows the tags but poly info shows stable since a different commit
same issue with a fresh checkout?
yeah unfortunately all the same
Internally, the poly tool executes git log --pretty=format:'%H %d'. It picks the newest tag that matches any of the tag patterns specified in workspace.edn. Nice to meet you at the Heart of Clojure by the way @timok! If you can't get it to work, please send me the output of that git command, and the content of :tag-patterns , and I can have a look.
that's interesting, so it has to be a tag object and can not be a 'lightweight' tag. indeed @tengstrand your command does not show my tags.
I actually didn't know that it is not sufficient to just git tag -m but one has to git tag -a -m
Okay, so problem solved?
solved (at least I think so)