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
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o api_server
结果:go: inconsistent vendoring in /usr/local/go/src/giligili:
go.mod requires giligili but vendor/modules.txt does not include it.
run 'go mod tidy; go mod vendor' to sync
The text was updated successfully, but these errors were encountered:
dockfile文件:
FROM golang as build
ENV GOPROXY=https://goproxy.io
ADD . /usr/local/go/src/giligili
WORKDIR /usr/local/go/src/giligili
RUN export GOPROXY=https://mirrors.aliyun.com/goproxy/
RUN export GO111MODULE=on
RUN go mod tidy
RUN go mod vendor
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o api_server
结果:go: inconsistent vendoring in /usr/local/go/src/giligili:
go.mod requires giligili but vendor/modules.txt does not include it.
run 'go mod tidy; go mod vendor' to sync
The text was updated successfully, but these errors were encountered: