From cc2377da5021583a78a8f5167cbfbf59c382792c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Fri, 14 Feb 2025 16:01:15 +0100 Subject: [PATCH] lepton/cci: run stringer with "go run" 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