From 45c4891182e39b5cbf62edc76c385d8f69e23c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Fri, 14 Feb 2025 15:53:16 +0100 Subject: [PATCH] inky: run stringer with "go run" Run stringer command (for code generation) using "go run" instead of "go install" to avoid affecting the developer's global $GOBIN. --- inky/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inky/types.go b/inky/types.go index 82744a7..f55eb89 100644 --- a/inky/types.go +++ b/inky/types.go @@ -4,7 +4,7 @@ package inky -//go:generate go install golang.org/x/tools/cmd/stringer@latest +//go:generate -command stringer go run golang.org/x/tools/cmd/stringer@latest //go:generate stringer -type=Model,Color,ImpressionColor -output types_string.go import (