Skip to content

Commit

Permalink
inky: run stringer with "go run"
Browse files Browse the repository at this point in the history
Run stringer command (for code generation) using "go run" instead of "go
install" to avoid affecting the developer's global $GOBIN.
  • Loading branch information
dolmen committed Feb 14, 2025
1 parent 5bcc204 commit 45c4891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inky/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 45c4891

Please sign in to comment.