Comments (19)
Rather than downgrading (we're on 1.18), switching the installation method to go install -mod=mod github.com/githubnemo/CompileDaemon
worked for me!
from compiledaemon.
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
from compiledaemon.
go install -mod=mod github.com/githubnemo/CompileDaemon
Worked for me also. Thanks man!
from compiledaemon.
@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
from compiledaemon.
From my docker container @terev
from compiledaemon.
from compiledaemon.
@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
from compiledaemon.
Ok I'll try that
from compiledaemon.
Still doesn't work. How are other users able to use it? I just don't get it at all
from compiledaemon.
@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
from compiledaemon.
@dapobelieve what base image are you using in your FROM ?
from compiledaemon.
Thanks @terev finally set it up properly had to do alot of reading
from compiledaemon.
@dapobelieve np . glad you got it working eventually
from compiledaemon.
Gracias @terev finalmente lo configuró correctamente tuve que leer mucho
Y como lo resolviste?
me está pasando lo mismo.
Gracias
from compiledaemon.
@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
from compiledaemon.
hi @dapobelieve, I encounter the same issue, could you share your solution, thanks
from compiledaemon.
@PhuSanh there is no general solution to this as it depends on your Dockerfile. Can you share it?
from compiledaemon.
@githubnemo how do I find what is the gopath for my base image?
from compiledaemon.
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
from compiledaemon.
Related Issues (20)
- Use CompileDaemon with go generate? HOT 4
- Latest commit tag not included in master
- include multiple directories HOT 2
- Terminate the program if a build fails
- Restart the program if it fails HOT 2
- Docker + Go 1.18 = /bin/sh: CompileDaemon: not found HOT 2
- package math/bits: unrecognized import path "math/bits" (import path does not begin with hostname) HOT 2
- Install for go 1.18+ HOT 10
- CompileDeamon not found golang 1.18 HOT 10
- "CompileDaemon": executable file not found in $PATH: unknown HOT 2
- Docker - File Changes not being Acknowledged
- Security Best Practice HOT 1
- 1.19 "stuck" on Build ok. HOT 3
- Support go.work
- Could not start command: can't start command: fork/exec ~/directory/to/go-project: no such file or directory HOT 1
- Go does not rebuild when .env file is changed
- Docker MacOS no rebuilding even with pulling on HOT 2
- error obtaining VCS status: exit status 128 HOT 1
- CompileDaemon did not install with vendor directory HOT 1
- Not detecting changes with Docker running on Windows with Linux containers in WSL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compiledaemon.