File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -909,11 +909,8 @@ gomod-pseudo-version() {
909909 # - origin: the published repository (e.g. github.com/kcp-dev/apimachinery)
910910 # - upstream: the local source repository (e.g. ../kcp)
911911 # We only consider tags from the published repository (origin).
912- # Technically, we should never ever hit this case. That's because tags are synced
913- # only after the initial publishing is done. We might eventually hit this case if
914- # there are two different tags/versions on the same commit.
915912 if [[ -n " ${commit_tag:- } " ]]; then
916- commit_tag=$( echo " ${commit_tag} " | grep ' origin\/v' | sed ' s|^origin/||' | sort -V | tail -n1)
913+ commit_tag=$( echo " ${commit_tag} " | grep -E ' v| origin\/v' | sed ' s|^origin/||' | sort -V | tail -n1)
917914 echo " ${commit_tag} "
918915 return
919916 fi
You can’t perform that action at this time.
0 commit comments