Set GOWORK=off and GOPATHS=-trimpath when building (#513)

This commit is contained in:
Gustavo Passini
2025-03-17 16:42:39 -04:00
committed by GitHub
parent 78655b4786
commit 30f87c1323

View File

@@ -4,6 +4,8 @@ export PATH := $(shell pwd)/.tmp/protoc/bin:$(PATH)
export PROTOC_VERSION := 22.0 export PROTOC_VERSION := 22.0
# Disable CGO for improved compatibility across distros # Disable CGO for improved compatibility across distros
export CGO_ENABLED=0 export CGO_ENABLED=0
export GOFLAGS=-trimpath
export GOWORK=off
# TODO: run golint and errcheck, but only to catch *new* violations and # 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 # decide whether to change code or not (e.g. we need to be able to whitelist