News for hackers. Stuff that matters.
Re:Proper use of Git tags by WorldMaker on Monday May 23, 2022 @05:42PM (#31485135)
Tags in git allow just about the same naming options as branches, and "v" prefix is just a convention not a requirement. So rather than applying a tag v1.3.2 you could use a "folder structure" such as library1/v1.3.2 and library2/v3.1.2. Today I learned that you can use `git describe --match="library1/v*"` to get the version relative to just "library1" if you are versioning this way (in a monorepo, for instance).
Re:Proper use of Git tags by howinteresting on Monday May 23, 2022 @07:58PM (#31486350)
It seems like what you describe is what golang supports: the folder structure in the tag name must match the folder structure in the repository. That's pretty cool.