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.
pull/101/head
Olivier Mengué 1 year ago committed by GitHub
parent 321f6f6211
commit 4ac3d19e0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save