Skip to content

Commit

Permalink
Show full Git describe as version
Browse files Browse the repository at this point in the history
In order to better differentiate between two development versions, it is
better to show the tag plus the number of new commits.

Update `git describe` to show the full details.
  • Loading branch information
HeavyWombat committed Oct 20, 2020
1 parent 187bf1f commit 5614c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

version := $(shell git describe --tags --abbrev=0 2>/dev/null || (git rev-parse HEAD | cut -c-8))
version := $(shell git describe --tags 2>/dev/null || (git rev-parse HEAD | cut -c-8))
sources := $(wildcard cmd/*/*.go internal/*/*.go)
goos := $(shell uname | tr '[:upper:]' '[:lower:]')
goarch := $(shell uname -m | sed 's/x86_64/amd64/')
Expand Down

0 comments on commit 5614c11

Please sign in to comment.