Skip to content

Commit

Permalink
use different variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
d-rk committed Mar 14, 2024
1 parent 7119cc2 commit 14c0c8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
BUILD_TS := $(shell date -Iseconds --utc)
COMMIT_SHA := $(shell git rev-parse HEAD)
VERSION := $(shell git describe --abbrev=0 --tags || echo "latest")
GOOS ?= linux
OS ?= linux

export CGO_ENABLED=0
export GOOS=$(GOOS)
export GOOS=$(OS)
export GO111MODULE=on

binary := $(if $(filter-out windows,$(GOOS)),kafkactl,kafkactl.exe)
binary := $(if $(filter-out windows,$(OS)),kafkactl,kafkactl.exe)

module=$(shell go list -m)
ld_flags := "-X $(module)/cmd.Version=$(VERSION) -X $(module)/cmd.GitCommit=$(COMMIT_SHA) -X $(module)/cmd.BuildTime=$(BUILD_TS)"
Expand Down

0 comments on commit 14c0c8c

Please sign in to comment.