From a386d95959dade2fc73220ba1d8541d63fa8d7e4 Mon Sep 17 00:00:00 2001 From: teernisse Date: Mon, 23 Feb 2026 09:40:03 -0500 Subject: [PATCH] build: use portable Go path detection in Makefile Replace hardcoded /usr/local/go/bin/go with dynamic PATH lookup. The previous hardcoded path failed on any system where Go is installed elsewhere (e.g., /usr/bin/go, ~/go/bin/go). Uses conditional assignment (GO ?=) so users can still override with GO=/custom/path make build when needed. Co-Authored-By: Claude Opus 4.5 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 65739a8..7a37321 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -GO := /usr/local/go/bin/go +GO ?= $(shell command -v go) BIN := cburn .PHONY: build install lint test test-race bench fuzz clean