How is a version determined on a commit with multiple tags?

I’m working on a project where I need to determine the Go module version on a locally cloned Git repository. I’ve got an algorithm that mostly works thanks to the documentation and some trial and error. Where I’m stuck is determining which tag to use when there are multiple tags on the same commit.

Any help would be appreciated. Thank you!

1 Like

I found the relevant code:

I’ll just work from that.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.