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
|
SHELL := /bin/bash
|
||||||
|
|
||||||
build:
|
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:
|
test:
|
||||||
go test -v -race ./...
|
go test -v -race ./...
|
||||||
|
|
||||||
release: vendor
|
release:
|
||||||
@$(SHELL) ./misc/script/release.sh
|
@$(SHELL) ./misc/script/release.sh
|
||||||
|
|
||||||
vendor:
|
|
||||||
go mod vendor
|
|
||||||
|
|
||||||
tidy:
|
tidy:
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
|
@ -25,7 +22,6 @@ lint:
|
||||||
clean:
|
clean:
|
||||||
rm -rf release
|
rm -rf release
|
||||||
rm -rf data
|
rm -rf data
|
||||||
rm -rf vendor
|
|
||||||
rm -rf bin
|
rm -rf bin
|
||||||
|
|
||||||
dokku-build:
|
dokku-build:
|
||||||
|
|
|
@ -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}" \
|
||||||
|
|
Loading…
Reference in New Issue