Do not use vendoring
This commit is contained in:
parent
8f47f7e503
commit
e8b59adced
7
Makefile
7
Makefile
|
@ -16,10 +16,7 @@ deps:
|
|||
lint:
|
||||
golangci-lint run --tests=false --enable-all
|
||||
|
||||
vendor:
|
||||
go mod vendor
|
||||
|
||||
release: clean vendor
|
||||
release: clean
|
||||
./misc/script/release
|
||||
|
||||
gitea-release:
|
||||
|
@ -28,4 +25,4 @@ gitea-release:
|
|||
clean:
|
||||
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..."
|
||||
|
||||
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)'" \
|
||||
-gcflags=-trimpath="${PWD}" \
|
||||
-asmflags=-trimpath="${PWD}" \
|
||||
|
|
Loading…
Reference in New Issue