Skip to content

Commit

Permalink
Fix Versioning (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray authored Mar 8, 2024
1 parent 3cebc00 commit 166b271
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ VERSION = 0.0.0

# Base go module name.
MODULE := $(shell cat go.mod | grep -m1 module | awk '{print $$2}')
CORE_MODULE := github.com/unikorn-cloud/core

# Git revision.
REVISION := $(shell git rev-parse HEAD)
Expand Down Expand Up @@ -68,7 +67,7 @@ GOPATH := $(shell go env GOPATH)
GOBIN := $(if $(shell go env GOBIN),$(shell go env GOBIN),$(GOPATH)/bin)

# Common linker flags.
FLAGS=-trimpath -ldflags '-X $(CORE_MODULE)/pkg/constants.Version=$(VERSION) -X $(CORE_MODULE)/pkg/constants.Revision=$(REVISION)'
FLAGS=-trimpath -ldflags '-X $(MODULE)/pkg/constants.Version=$(VERSION) -X $(MODULE)/pkg/constants.Revision=$(REVISION)'

# Defines the linter version.
LINT_VERSION=v1.54.2
Expand Down

0 comments on commit 166b271

Please sign in to comment.