Commit 7a6729d 1 parent 14c4765 commit 7a6729d Copy full SHA for 7a6729d
File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,11 @@ BINARY_NAME=crowdsec-custom-bouncer
12
12
13
13
# Current versioning information from env
14
14
BUILD_VERSION? ="$(shell git describe --tags) "
15
- BUILD_GOVERSION ="$(shell go version | cut -d " " -f3 | sed -r 's/[go]+//g') "
16
15
BUILD_TIMESTAMP =$(shell date +% F"_"% T)
17
16
BUILD_TAG ="$(shell git rev-parse HEAD) "
18
17
export LD_OPTS =-ldflags "-s -w -X github.com/crowdsecurity/cs-custom-bouncer/pkg/version.Version=$(BUILD_VERSION ) \
19
18
-X github.com/crowdsecurity/cs-custom-bouncer/pkg/version.BuildDate=$(BUILD_TIMESTAMP ) \
20
- -X github.com/crowdsecurity/cs-custom-bouncer/pkg/version.Tag=$(BUILD_TAG ) \
21
- -X github.com/crowdsecurity/cs-custom-bouncer/pkg/version.GoVersion=$(BUILD_GOVERSION ) "
19
+ -X github.com/crowdsecurity/cs-custom-bouncer/pkg/version.Tag=$(BUILD_TAG ) "
22
20
23
21
RELDIR = "crowdsec-custom-bouncer-${BUILD_VERSION}"
24
22
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package version
3
3
import (
4
4
"fmt"
5
5
"log"
6
+ "runtime"
6
7
)
7
8
8
9
/*
21
22
Version string // = "v0.0.0"
22
23
BuildDate string // = "I don't remember exactly"
23
24
Tag string // = "dev"
24
- GoVersion string // = "1.13"
25
+ GoVersion = runtime . Version () // = "1.13"
25
26
)
26
27
27
28
func ShowStr () string {
You can’t perform that action at this time.
0 commit comments