Skip to content

Commit

Permalink
add .golangci.yml and update version in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
chengshiwen committed Jun 9, 2021
1 parent 0bb94f8 commit d68e33a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
run:
allow-parallel-runners: true
linters:
enable:
- golint
disable:
- errcheck
- typecheck
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Makefile

VERSION := 2.5.5
LDFLAGS ?= "-s -w -X main.GitCommit=$(shell git rev-parse --short HEAD) -X 'main.BuildTime=$(shell date '+%Y-%m-%d %H:%M:%S')'"
LDFLAGS ?= "-s -w -X github.com/chengshiwen/influx-proxy/backend.Version=$(VERSION) -X main.GitCommit=$(shell git rev-parse --short HEAD) -X 'main.BuildTime=$(shell date '+%Y-%m-%d %H:%M:%S')'"
GOBUILD_ENV = GO111MODULE=on CGO_ENABLED=0
GOBUILD = $(GOBUILD_ENV) go build -o bin/influx-proxy -a -ldflags $(LDFLAGS)
GOBUILD = go build -o bin/influx-proxy -a -ldflags $(LDFLAGS)
GOX = go run github.com/mitchellh/gox
TARGETS := darwin/amd64 linux/amd64 windows/amd64
DIST_DIRS := find * -type d -maxdepth 0 -exec
DIST_DIRS := find * -maxdepth 0 -type d -exec

.PHONY: build linux cross-build release test bench run lint down tidy clean

Expand Down
4 changes: 1 addition & 3 deletions backend/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import (
"github.com/spf13/viper"
)

const (
Version = "2.5.5"
)
var Version = "not build"

var (
ErrEmptyCircles = errors.New("circles cannot be empty")
Expand Down

0 comments on commit d68e33a

Please sign in to comment.