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
GOPATH
andGOBIN
are not default one's, I set it togoWorkspace
First, don't forget that the use of
go get
to 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
CompileDaemon
executable in your directory named by theGOBIN
environment variable.But you need
$GOBIN
itself in your$PATH
(from your~/.zshrc
for instance):