News for hackers. Stuff that matters.
Re:Proper use of Git tags by WorldMaker on Monday May 23, 2022 @05:37PM (#31485075)
I sometimes dump git describe to a JSON file rather than modifying a source file and let the build bundle it as an embedded resource. You can .gitignore the JSON file to keep it from accidentally getting checked in (and causing merge conflicts).

As also pointed out, many build tools that want or need version numbers often also have command line flags or can take environment variables instead of using source files.

Re:Proper use of Git tags by jonnycomputer on Monday May 23, 2022 @07:51PM (#31486295)
There seems a lot to like about that approach.