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.
pull/95/head
Olivier Mengué 1 year ago
parent 5bcc204c9a
commit 45c4891182

@ -4,7 +4,7 @@
package inky 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 //go:generate stringer -type=Model,Color,ImpressionColor -output types_string.go
import ( import (

Loading…
Cancel
Save