Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
fix broken version tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcz committed Aug 31, 2024
1 parent 3f02d59 commit c21527f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
GITCOMMIT := $(shell git rev-parse --short HEAD 2>/dev/null)
GIT_TAG := $(shell git describe --tags 2>/dev/null)

LDFLAGS := -s -w -X github.com/tomcz/openldap_exporter.commit=${GITCOMMIT}
LDFLAGS := ${LDFLAGS} -X github.com/tomcz/openldap_exporter.tag=${GIT_TAG}
LDFLAGS := -s -w -X main.commit=${GITCOMMIT}
LDFLAGS := ${LDFLAGS} -X main.tag=${GIT_TAG}
OUTFILE ?= openldap_exporter

.PHONY: precommit
Expand Down

0 comments on commit c21527f

Please sign in to comment.