mirror of
https://github.com/regclient/regclient.git
synced 2025-04-17 11:37:11 +03:00
Setting trimpath on go build
This also fixes a minor license detail. Signed-off-by: Brandon Mitchell <git@bmitch.net>
This commit is contained in:
parent
c6a4c09c13
commit
6ebe624b27
2
LICENSE
2
LICENSE
@ -176,7 +176,7 @@
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Copyright 2020 The regctl Authors.
|
||||
Copyright 2020 The regclient Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ ifneq ($(shell git status --porcelain 2>/dev/null),)
|
||||
endif
|
||||
VCS_TAG:=$(shell git describe --tags --abbrev=0 2>/dev/null || true)
|
||||
LD_FLAGS=-s -w -extldflags -static
|
||||
GO_BUILD_FLAGS=-ldflags "$(LD_FLAGS)" -tags nolegacy
|
||||
GO_BUILD_FLAGS=-trimpath -ldflags "$(LD_FLAGS)" -tags nolegacy
|
||||
DOCKERFILE_EXT:=$(shell if docker build --help 2>/dev/null | grep -q -- '--progress'; then echo ".buildkit"; fi)
|
||||
DOCKER_ARGS=--build-arg "VCS_REF=$(VCS_REF)"
|
||||
GOPATH:=$(shell go env GOPATH)
|
||||
|
Loading…
x
Reference in New Issue
Block a user