Do not use vendoring

This commit is contained in:
wpetit 2021-07-09 13:59:38 +02:00
parent 8f47f7e503
commit e8b59adced
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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}" \