Set GOWORK=off and GOPATHS=-trimpath when building

This commit is contained in:
Gustavo 2025-03-13 11:25:31 -04:00
parent 78655b4786
commit 877bb2fb60
1 changed files with 2 additions and 0 deletions

View File

@ -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