Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompileDaemon not found #45

Closed
dapobelieve opened this issue Feb 23, 2020 · 20 comments
Closed

CompileDaemon not found #45

dapobelieve opened this issue Feb 23, 2020 · 20 comments

Comments

@dapobelieve
Copy link

I get the error "CompileDaemon: not found" and I don't understand why I'm getting such error

@terev
Copy link

terev commented Feb 23, 2020

@dapobelieve in what context? Is that an error from the binary or the os when trying to run it? Please paste the command you were trying to run

@dapobelieve
Copy link
Author

From my docker container @terev

@dapobelieve
Copy link
Author

Screenshot 2020-02-23 at 4 25 04 PM

This is my simple dockerfile and I still get `CompileDaemon: not found` when i run dockercompose

@terev
Copy link

terev commented Feb 23, 2020

@dapobelieve you specified the entrypoint as CompileDaemon which overrides the default entrypoint which is usually a shell with PATH set. if you changed your entrypoint to

ENTRYPOINT ["/go/bin/CompileDaemon", ...]

it should work. it would also work in the syntax you originally used as long as the full binary path is there

@dapobelieve
Copy link
Author

Ok I'll try that

@dapobelieve
Copy link
Author

Still doesn't work. How are other users able to use it? I just don't get it at all

@terev
Copy link

terev commented Feb 23, 2020

@dapobelieve go get installs into GOPATH . whatever GOPATH is in your base image is where it'll be installed. it could be a different dir than /go/bin

@terev
Copy link

terev commented Feb 23, 2020

@dapobelieve what base image are you using in your FROM ?

@dapobelieve
Copy link
Author

Thanks @terev finally set it up properly had to do alot of reading

@terev
Copy link

terev commented Feb 24, 2020

@dapobelieve np . glad you got it working eventually

@ghost
Copy link

ghost commented Oct 24, 2020

Gracias @terev finalmente lo configuró correctamente tuve que leer mucho

Y como lo resolviste?
me está pasando lo mismo.
Gracias

@terev
Copy link

terev commented Oct 24, 2020

@feuangel your entrypoint needs to reference the absolute path to the executable. Or if the base image you're building off of has a shell as the entrypoint and GOPATH/bin is in PATH you should be able to specify CMD ["CompileDaemon", ...] instead overriding the entrypoint

@SanhDoan
Copy link

hi @dapobelieve, I encounter the same issue, could you share your solution, thanks

@githubnemo
Copy link
Owner

@PhuSanh there is no general solution to this as it depends on your Dockerfile. Can you share it?

@rituparnakhaund
Copy link

rituparnakhaund commented Nov 1, 2021

@githubnemo how do I find what is the gopath for my base image?

@WiRight
Copy link

WiRight commented Jun 17, 2022

In my case I getting error on golang:1.18.2-alpine3.15 image

Downgrade to golang:1.16.0-alpine3.13 works for me

Try it

@ostenbom
Copy link

Rather than downgrading (we're on 1.18), switching the installation method to go install -mod=mod github.com/githubnemo/CompileDaemon worked for me!

@Jatin-Kamboj
Copy link

Rather than downgrading (we're on 1.18), switching the installation method to go install -mod=mod github.com/githubnemo/CompileDaemon worked for me!

This worked for me

@sumonbiswas2010
Copy link

go install -mod=mod github.com/githubnemo/CompileDaemon

Worked for me also. Thanks man!

@abdulla-bey01
Copy link

go install -mod=mod github.com/githubnemo/CompileDaemo

Worked. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants