Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
wpetit | e8b59adced | |
wpetit | 8f47f7e503 |
7
Makefile
7
Makefile
|
@ -16,10 +16,7 @@ deps:
|
||||||
lint:
|
lint:
|
||||||
golangci-lint run --tests=false --enable-all
|
golangci-lint run --tests=false --enable-all
|
||||||
|
|
||||||
vendor:
|
release: clean
|
||||||
go mod vendor
|
|
||||||
|
|
||||||
release: clean vendor
|
|
||||||
./misc/script/release
|
./misc/script/release
|
||||||
|
|
||||||
gitea-release:
|
gitea-release:
|
||||||
|
@ -28,4 +25,4 @@ gitea-release:
|
||||||
clean:
|
clean:
|
||||||
rm -rf ./bin ./release ./coverage
|
rm -rf ./bin ./release ./coverage
|
||||||
|
|
||||||
.PHONY: test clean lint coverage doc release vendor
|
.PHONY: test clean lint coverage doc release
|
|
@ -24,7 +24,6 @@ function build {
|
||||||
echo "building $dirname..."
|
echo "building $dirname..."
|
||||||
|
|
||||||
CGO_ENABLED=0 GOOS="$os" GOARCH="$arch" go build \
|
CGO_ENABLED=0 GOOS="$os" GOARCH="$arch" go build \
|
||||||
-mod=vendor \
|
|
||||||
-ldflags="-s -w -X 'main.GitRef=$(current_commit_ref)' -X 'main.ProjectVersion=$(current_version)' -X 'main.BuildDate=$(current_date)'" \
|
-ldflags="-s -w -X 'main.GitRef=$(current_commit_ref)' -X 'main.ProjectVersion=$(current_version)' -X 'main.BuildDate=$(current_date)'" \
|
||||||
-gcflags=-trimpath="${PWD}" \
|
-gcflags=-trimpath="${PWD}" \
|
||||||
-asmflags=-trimpath="${PWD}" \
|
-asmflags=-trimpath="${PWD}" \
|
||||||
|
|
Loading…
Reference in New Issue