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

Module setup out of date #3

Open
joshbwlng opened this issue Apr 22, 2020 · 2 comments · Fixed by product-os/prometheus-statuspage-pusher#1 · May be fixed by #5
Open

Module setup out of date #3

joshbwlng opened this issue Apr 22, 2020 · 2 comments · Fixed by product-os/prometheus-statuspage-pusher#1 · May be fixed by #5

Comments

@joshbwlng
Copy link

Should update module definition using more recent go mod init's go.mod/go.sum instead of Gopkg.lock/Gopkg.toml.

@joshbwlng
Copy link
Author

Putting together a PR to fix this

@GamerGun
Copy link

GamerGun commented Mar 17, 2021

So what changes should i make to my Dockerfile?
could not find project Gopkg.toml, use dep init to initiate a manifest

Guess like this;

COPY main.go $GOPATH/src/$IPATH/main.go
COPY go.sum $GOPATH/src/$IPATH/go.sum

WORKDIR $GOPATH/src/$IPATH

RUN set -x \
    && dep init \
    && dep ensure --vendor-only \
    && go test ./... && CGO_ENABLED=0 go install ./...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants