Do not use vendoring
This commit is contained in:
parent
4bbf7b0160
commit
0df9908907
8
Makefile
8
Makefile
|
@ -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:
|
||||
|
|
|
@ -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