Skip to content

CompileDeamon not found golang 1.18 #77

Open

Description

@valensto

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

Activity

  1. Denes-cilwal commented on Apr 25, 2022

    @Denes-cilwal

    @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

  2. diegoclair commented on May 2, 2022

    @diegoclair

    I'm with same error with golang:1.18

  3. Denes-cilwal commented on May 4, 2022

    @Denes-cilwal

    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 ?

  4. mr1hm commented on May 9, 2022

    @mr1hm

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

  5. diegoclair commented on May 11, 2022

    @diegoclair

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

  6. Denes-cilwal commented on May 18, 2022

    @Denes-cilwal

    I see thanks for your update 👍🏾

  7. spaiki007 commented on Apr 5, 2023

    @spaiki007

    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"]

    `

  8. Shiba-Kar commented on Jul 23, 2023

    @Shiba-Kar

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

  9. valensto commented on Jul 23, 2023

    @valensto
    Author

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

  10. Shiba-Kar commented on Jul 23, 2023

    @Shiba-Kar

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions