From 6ebe624b2729417b434794031c650a1f2d16e3e2 Mon Sep 17 00:00:00 2001 From: Brandon Mitchell Date: Sun, 3 Apr 2022 19:38:05 -0400 Subject: [PATCH] Setting trimpath on go build This also fixes a minor license detail. Signed-off-by: Brandon Mitchell --- LICENSE | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 3a5caa2..6e12b19 100644 --- a/LICENSE +++ b/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. diff --git a/Makefile b/Makefile index 7c5e154..ecf729d 100644 --- a/Makefile +++ b/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)