set up Makefile for reproducible builds

This commit is contained in:
Moritz Poldrack 2022-04-11 08:56:40 +02:00
parent 1f43c39f93
commit c312f8bf4a
No known key found for this signature in database
GPG Key ID: 6A88F42508AB4FC6
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ PROTO_SOURCES = $(call rwildcard,,*.proto)
build:
GGO_ENABLED=0 go build -ldflags "-s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=$(version)" cmd/headscale/headscale.go
GGO_ENABLED=0 go build -trimpath -buildmode=pie -mod=readonly -ldflags "-s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=$(version)" cmd/headscale/headscale.go
dev: lint test build