Installed using, go get github.com/githubnemo/CompileDaemon and go install github.com/githubnemo/CompileDaemon
When I try to run it using -> CompileDaemon --compile="./folderName"
It gives -> zsh: command not found: CompileDaemon
Note:
- I'm using oh-my-zsh.
- My
GOPATHandGOBINare not default one's, I set it togoWorkspace
First, don't forget that the use of
go getto build and install packages is deprecated (In earlier versions of Go, 'go get' was used to build and install packages. Now, 'go get' is dedicated to adjusting dependencies ingo.mod.)All you need should be
go install:That should generate a
CompileDaemonexecutable in your directory named by theGOBINenvironment variable.But you need
$GOBINitself in your$PATH(from your~/.zshrcfor instance):