Do not use vendoring
This commit is contained in:
parent
a0677f23e5
commit
38ac4422dd
13
Makefile
13
Makefile
|
@ -3,18 +3,15 @@ SHELL := /bin/bash
|
|||
DOCKER_IMAGE_NAME ?= bornholm/hydra-passwordless
|
||||
DOCKER_IMAGE_TAG ?= latest
|
||||
|
||||
build: vendor
|
||||
CGO_ENABLED=0 go build -mod=vendor -v -o bin/server ./cmd/server
|
||||
build:
|
||||
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
|
||||
|
||||
|
@ -40,7 +37,6 @@ create-default-client:
|
|||
-n "Default App" \
|
||||
-a "openid" -a "email"
|
||||
|
||||
|
||||
list-clients:
|
||||
docker-compose exec \
|
||||
-e HYDRA_URL=http://localhost:4445 \
|
||||
|
@ -95,7 +91,6 @@ docker-release: docker-build
|
|||
clean:
|
||||
rm -rf release
|
||||
rm -rf data
|
||||
rm -rf vendor
|
||||
rm -rf bin
|
||||
|
||||
.PHONY: lint watch build vendor tidy release
|
||||
.PHONY: lint watch build tidy 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}" \
|
||||
|
|
Loading…
Reference in New Issue