Do not use vendoring

This commit is contained in:
wpetit 2020-10-13 10:59:41 +02:00
parent 4bbf7b0160
commit 0df9908907
2 changed files with 2 additions and 7 deletions

View File

@ -2,17 +2,14 @@ DOKKU_HOST := dokku@dev.lookingfora.name
SHELL := /bin/bash
build:
CGO_ENABLED=0 go build -mod=vendor -v -o ./bin/server ./cmd/server
CGO_ENABLED=0 go build -v -o ./bin/server ./cmd/server
test:
go test -v -race ./...
release: vendor
release:
@$(SHELL) ./misc/script/release.sh
vendor:
go mod vendor
tidy:
go mod tidy
@ -25,7 +22,6 @@ lint:
clean:
rm -rf release
rm -rf data
rm -rf vendor
rm -rf bin
dokku-build:

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