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

CompileDeamon not found golang 1.18 #77

Open
valensto opened this issue Apr 11, 2022 · 10 comments
Open

CompileDeamon not found golang 1.18 #77

valensto opened this issue Apr 11, 2022 · 10 comments

Comments

@valensto
Copy link

valensto commented Apr 11, 2022

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

@Denes-cilwal
Copy link

@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

@diegoclair
Copy link

I'm with same error with golang:1.18

@Denes-cilwal
Copy link

Denes-cilwal commented May 4, 2022

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 ?

@mr1hm
Copy link

mr1hm commented May 9, 2022

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

@diegoclair
Copy link

diegoclair commented May 11, 2022

@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//

@Denes-cilwal
Copy link

I see thanks for your update 👍🏾

@spaiki007
Copy link

spaiki007 commented Apr 5, 2023

example

main repo
- sub app repo <- I got it here, Use -buildvcs=false to disable VCS stamping.
- ...

Decision

`
FROM golang:alpine

WORKDIR /go/src/app

ENV GOFLAGS="-buildvcs=false" <- it helped!

COPY go.mod go.sum ./

RUN go mod download && go mod verify

RUN go install github.com/githubnemo/CompileDaemon@latest

CMD ["CompileDaemon", "-command=./app"]

`

@Shiba-Kar
Copy link

go 1.20.6
Screenshot 2023-07-23 at 1 09 43 PM

@valensto
Copy link
Author

@Shiba-Kar first, did you restart your terminal? ☺️

@Shiba-Kar
Copy link

@Shiba-Kar first, did you restart your terminal? ☺️

Yes done a reboot

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

6 participants