You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//go:generate genny -in=$GOFILE -out=gen-$GOFILE gen "KeyType=string,int ValueType=string,int"
go generate ./... command with above comment reproduce running "genny": exec: "genny": executable file not found in $PATH messege for me.
However, if I do that command with //go:generate $GOPATH/bin/genny -in=$GOFILE -out=gen-$GOFILE gen "KeyType=string,int ValueType=string,int"
this comment, genny generation works for me well.
I want to use //go:generate genny -in=$GOFILE -out=gen-$GOFILE gen "KeyType=string,int ValueType=string,int" this comment which is document's recommended comment.
You probably need to write export PATH="$PATH:$(go env GOPATH)/bin" in a shell script that is always executed. Traditionally ~/.profile or ~/.bashrc (or ~/.zprofile, ~/.zshrc if you use zsh).
//go:generate genny -in=$GOFILE -out=gen-$GOFILE gen "KeyType=string,int ValueType=string,int"
go generate ./...
command with above comment reproducerunning "genny": exec: "genny": executable file not found in $PATH
messege for me.However, if I do that command with
//go:generate $GOPATH/bin/genny -in=$GOFILE -out=gen-$GOFILE gen "KeyType=string,int ValueType=string,int"
this comment, genny generation works for me well.
I want to use
//go:generate genny -in=$GOFILE -out=gen-$GOFILE gen "KeyType=string,int ValueType=string,int"
this comment which is document's recommended comment.How can I use this one with the best?
below is my
go env
Thanks!
The text was updated successfully, but these errors were encountered: