Lines 1-11
Link Here
|
1 |
--- Makefile.orig 2021-11-17 09:15:38 UTC |
1 |
--- Makefile.orig 2021-12-21 21:18:22 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -42,7 +42,7 @@ BUILD_VERSION?="$(shell git describe --tags `git rev-l |
3 |
@@ -44,14 +44,14 @@ BUILD_CODENAME=$(shell cat RELEASE.json | jq -r .CodeN |
4 |
BUILD_GOVERSION="$(shell go version | cut -d " " -f3 | sed -E 's/[go]+//g')" |
|
|
5 |
BUILD_CODENAME=$(shell cat RELEASE.json | jq -r .CodeName) |
6 |
BUILD_TIMESTAMP=$(shell date +%F"_"%T) |
4 |
BUILD_TIMESTAMP=$(shell date +%F"_"%T) |
7 |
-BUILD_TAG="$(shell git rev-parse HEAD)" |
5 |
BUILD_TAG?="$(shell git rev-parse HEAD)" |
8 |
+BUILD_TAG?="$(shell git rev-parse HEAD)" |
|
|
9 |
|
6 |
|
10 |
export LD_OPTS=-ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ |
7 |
-export LD_OPTS=-ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ |
|
|
8 |
+export LD_OPTS=-mod vendor -modcacherw -ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ |
11 |
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.System=$(SYSTEM) \ |
9 |
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.System=$(SYSTEM) \ |
|
|
10 |
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.BuildDate=$(BUILD_TIMESTAMP) \ |
11 |
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=$(BUILD_CODENAME) \ |
12 |
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.Tag=$(BUILD_TAG) \ |
13 |
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.GoVersion=$(BUILD_GOVERSION)" |
14 |
|
15 |
-export LD_OPTS_STATIC=-ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ |
16 |
+export LD_OPTS_STATIC=-mod vendor -modcacherw -ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ |
17 |
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.BuildDate=$(BUILD_TIMESTAMP) \ |
18 |
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=$(BUILD_CODENAME) \ |
19 |
-X github.com/crowdsecurity/crowdsec/pkg/cwversion.Tag=$(BUILD_TAG) \ |
20 |
@@ -176,4 +176,4 @@ check_release: |
21 |
release: check_release build package |
22 |
|
23 |
.PHONY: |
24 |
-release_static: check_release static package_static |
25 |
\ No newline at end of file |
26 |
+release_static: check_release static package_static |