Skip to content

Commit

Permalink
Removed use of the of BUILD_FLAGS in apiserver makefile (ray-project#…
Browse files Browse the repository at this point in the history
…1336)

Removed use of the  of BUILD_FLAGS in apiserver makefile
  • Loading branch information
z103cb authored and blublinsky committed Aug 25, 2023
1 parent 0d3d696 commit 1e93a67
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions apiserver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,8 @@ lint: golangci-lint fmt vet fumpt imports ## Run the linter.

##@ Build

COMMIT := $(shell git rev-parse --short HEAD)
VERSION := $(shell git describe --tags $(shell git rev-list --tags --max-count=1))
DATE=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
REPO=github.com/ray-project/kuberay

BUILD_FLAGS ?= -ldflags="-X '${REPO}/apiserver/cmd/version.Version=$(VERSION)' \
-X '${REPO}/apiserver/cmd/version.gitCommit=$(COMMIT)' \
-X '${REPO}/apiserver/cmd/version.buildDate=$(DATE)'"

build: fmt vet fumpt imports lint ## Build api server binary.
go build $(BUILD_FLAGS) -o ${REPO_ROOT_BIN}/kuberay-apiserver cmd/main.go
go build -o ${REPO_ROOT_BIN}/kuberay-apiserver cmd/main.go

run: fmt vet fumpt imports lint ## Run the api server from your host.
go run -race cmd/main.go
Expand Down

0 comments on commit 1e93a67

Please sign in to comment.