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

View File

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