From 4ac3d19e0c16b68e21b017269396778c9ce5138d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 25 Feb 2025 20:40:02 +0100 Subject: [PATCH] lepton/cci: run stringer with "go run" (#96) Run the stringer command (for code generation) using "go run" instead of "go install" to avoid affecting the developer's global $GOBIN. --- lepton/cci/cci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lepton/cci/cci.go b/lepton/cci/cci.go index 538caac..493221c 100644 --- a/lepton/cci/cci.go +++ b/lepton/cci/cci.go @@ -2,7 +2,7 @@ // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. -//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 -output=strings_gen.go -type=CameraStatus,command,FFCShutterMode,FFCState,ShutterPos,ShutterTempLockoutState package cci