CompileDaemon icon indicating copy to clipboard operation
CompileDaemon copied to clipboard

CompileDeamon not found golang 1.18

Open valensto opened this issue 3 years ago • 10 comments

Hi,

Cannot run CompileDeamon as Entrypoint of dockerfile with golang 1.18 Working on golang:1.17.8-alpine3.15 with same ENTRYPOINT

tested with go get github.com/githubnemo/CompileDaemon@latest

valensto avatar Apr 11 '22 12:04 valensto

@valensto I faced same issue when i updated golang to 1.18 the reason is golang:1.17.8-alpine came with the git executable - presumably to accommodate go get - but golang:1.18-alpine does not - presumably because of the breaking change to go get that accompanied the new version.

go install github.com/githubnemo/CompileDaemon@latest also add RUN apk add --no-cache git to dockerfile

Denes-cilwal avatar Apr 25 '22 10:04 Denes-cilwal

I'm with same error with golang:1.18

diegoclair avatar May 02 '22 04:05 diegoclair

I'm with same error with golang:1.18

go install github.com/githubnemo/CompileDaemon@latest also add RUN apk add --no-cache git to dockerfile go 1.18 no longer supports go get , you need go install did this solve your error ?

Denes-cilwal avatar May 04 '22 11:05 Denes-cilwal

@Denes-cilwal i was experiencing the same issue and can confirm replacing "go get" with "go install" fixed it for me

mr1hm avatar May 09 '22 17:05 mr1hm

@Denes-cilwal thanks for the answer. With golang:1.18 it worked adding: RUN apt-get install git and go install github.com/githubnemo/CompileDaemon@latest

With golang:1.18-alpine I got the follwing error when it starts to build the application: error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping.

But thats ok, I'm not using alpine for my tests here. Thanks again

UPDATE: I tested the image golang:1.18 without RUN apt-get install git and it worked too o//

diegoclair avatar May 11 '22 03:05 diegoclair

I see thanks for your update 👍🏾

Denes-cilwal avatar May 18 '22 04:05 Denes-cilwal