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

I have error in build krakend-ce with go mod download #899

Open
rezaalimorady opened this issue Jul 8, 2024 · 1 comment
Open

I have error in build krakend-ce with go mod download #899

rezaalimorady opened this issue Jul 8, 2024 · 1 comment
Labels

Comments

@rezaalimorady
Copy link

using latest version of krakend-ce

FROM golang:1.22-bullseye AS builder


RUN apt-get update && \
	apt-get install -y ca-certificates git make && \
	update-ca-certificates


RUN git clone https://github.com/krakend/krakend-ce

RUN cd krakend-ce && \
    GOPROXY=https://goproxy.io go mod download && go mod tidy \
    make build


in this dockerfile i iave error in influxdata:

 => ERROR [builder 4/4] RUN cd krakend-ce &&     rm -f go.sum &&     GOPROXY=https://goproxy.io go mod download && go mod tidy     make build                                             155.3s
------                                                                                                                                                                                           
 > [builder 4/4] RUN cd krakend-ce &&     rm -f go.sum &&     GOPROXY=https://goproxy.io go mod download && go mod tidy     make build:                                                          
154.8 go: github.com/influxdata/[email protected]: verifying module: checksum mismatch                                                                                                            
154.8   downloaded: h1:no0nKPSzKkrmEbR6hAsw2JMye9Q0AIrlyR9sxj0M8ro=                                                                                                                              
154.8   sum.golang.org: h1:+em5VOl6lhAZubXj5o6SobCwvrRs3XDlBx/MUI4schI=                                                                                                                          
154.8 
154.8 SECURITY ERROR
154.8 This download does NOT match the one reported by the checksum server.
154.8 The bits may have been replaced on the origin server, or an attacker may
154.8 have intercepted the download attempt.
154.8 
154.8 For more information, see 'go help module-auth'.
------
Dockerfile.build:16
@taik0
Copy link
Member

taik0 commented Jul 8, 2024

Your logfile shows that you are removing the go.sum (not in the Dockerfile).
It should work if you don't remove the go.sum.

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

No branches or pull requests

2 participants