You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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
Reacted by Valensto, Pedro Sotelo Góngora, Diego Clair, Tan, Marko, Shashi Deshetti and Mario Škrlec
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 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//
Activity
Denes-cilwal commentedon Apr 25, 2022
@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@latestalso add
RUN apk add --no-cache gitto dockerfilediegoclair commentedon May 2, 2022
I'm with same error with golang:1.18
Denes-cilwal commentedon May 4, 2022
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 commentedon 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 commentedon May 11, 2022
@Denes-cilwal thanks for the answer.
With golang:1.18 it worked adding:
RUN apt-get install gitandgo install github.com/githubnemo/CompileDaemon@latestWith golang:1.18-alpine
I got the follwing error when it starts to build the application:
error obtaining VCS status: exit status 128Use -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 gitand it worked too o//Denes-cilwal commentedon May 18, 2022
I see thanks for your update 👍🏾
spaiki007 commentedon Apr 5, 2023
example
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 commentedon Jul 23, 2023
go 1.20.6

valensto commentedon Jul 23, 2023
@Shiba-Kar first, did you restart your terminal?☺️
Shiba-Kar commentedon Jul 23, 2023
Yes done a reboot