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

can not upgrade to v1.9.1 #1687

Open
parsibox opened this issue Mar 21, 2025 · 5 comments
Open

can not upgrade to v1.9.1 #1687

parsibox opened this issue Mar 21, 2025 · 5 comments

Comments

@parsibox
Copy link

hi
i use windows 11 64 bit and go 1.24 i can not update to v1.9.1


go: -d flag is deprecated. -d=true is a no-op
go: downloading github.com/go-sql-driver/mysqlc
go: github.com/go-sql-driver/[email protected]: verifying module: checksum mismatch
	downloaded: h1:oDr3crteKcueQ18yeWSyj52l3Qp8kh4zQlbbJFq0hLY=
	sum.golang.org: h1:FrjNGn/BsJQjVRuSa8CBrM5BWA9BWoXXat3KrtSb/iI=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
@methane
Copy link
Member

methane commented Mar 21, 2025

how can I reproduce the error?
On my machine, go mod init test1; go get github.com/go-sql-driver/[email protected] works fine.

@methane
Copy link
Member

methane commented Mar 21, 2025

When I released v1.9.1, I made a mistake and tagged the wrong commit first, then immediately tagged the correct commit to overwrite it.
I don't think it was even a minute in between, but there is a possibility that it was cached somewhere during that time.

The correct hash value is registered in sum.golang.org. Could you try running go clean -modcache and then go get?

If that doesn't solve the error, the wrong cache may be on a proxy server somewhere, not on your machine.
Are you using any caching proxy servers?

@xmx
Copy link

xmx commented Apr 3, 2025

me too

@methane
Copy link
Member

methane commented Apr 3, 2025

@xmx Have you read my comment above? I am waiting additional information. Just "me too" isn't helpful.

@xmx
Copy link

xmx commented Apr 3, 2025

As you mentioned, I was using the https://goproxy.io proxy server. When I switched to https://goproxy.cn, the issue was resolved.

xmx pushed a commit to vela-ssoc/ssoc-common-mb that referenced this issue Apr 3, 2025
如果遇到如下问题:
go: github.com/go-sql-driver/[email protected]: verifying module: checksum mismatch
        downloaded: h1:oDr3crteKcueQ18yeWSyj52l3Qp8kh4zQlbbJFq0hLY=
        sum.golang.org: h1:FrjNGn/BsJQjVRuSa8CBrM5BWA9BWoXXat3KrtSb/iI=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

请参考:
go-sql-driver/mysql#1687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants