From e8b59adced8177144348f489b8f87d17142bd819 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 9 Jul 2021 13:59:38 +0200 Subject: [PATCH] Do not use vendoring --- Makefile | 7 ++----- misc/script/release | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 40d1a35..6bf94b6 100644 --- a/Makefile +++ b/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 \ No newline at end of file +.PHONY: test clean lint coverage doc release \ No newline at end of file diff --git a/misc/script/release b/misc/script/release index 4291c5a..4ec5e09 100755 --- a/misc/script/release +++ b/misc/script/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}" \