From 30f87c1323168c53ced515bbbc26d5cd899a05f3 Mon Sep 17 00:00:00 2001 From: Gustavo Passini Date: Mon, 17 Mar 2025 16:42:39 -0400 Subject: [PATCH] Set GOWORK=off and GOPATHS=-trimpath when building (#513) --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 0c92794..abaaff5 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ export PATH := $(shell pwd)/.tmp/protoc/bin:$(PATH) export PROTOC_VERSION := 22.0 # Disable CGO for improved compatibility across distros export CGO_ENABLED=0 +export GOFLAGS=-trimpath +export GOWORK=off # TODO: run golint and errcheck, but only to catch *new* violations and # decide whether to change code or not (e.g. we need to be able to whitelist