Open technosophos opened 8 years ago
If we want to be more fine grained we could use a commit hook to alter it on each commit.
I was under the impression that those hooks had to fire client-side, which means it would become a prerequisite for committing to Glide. That would make me a little uncomfortable.
not too bad if it's just a couple people using it - and if you can write instrumentation into the makefile that automatically injects it into the git repository (which is possible).
I've seen a number of cases now where the output of
glide --version
isdev
because Glide was built without using the Makefile. (go get
being a great example)What if we wrote a script or make target called
tag
that did the following:Given a SemVer tag...
main.version
with the taggit commit
that filegit tag
that versiongit push
main.version
with tag plus the build flag+dev
git commit
that filegit push
That way, a build would have the version
1.2.3
, and anything fetched withgo get
would have1.2.3+dev
. Anything built withmake
would have a precise version.