Skip to content

update dgraph-io/ristretto to outcaste-io/ristretto#13630

Closed
seanbachelder wants to merge 2 commits intoDataDog:mainfrom
seanbachelder:main
Closed

update dgraph-io/ristretto to outcaste-io/ristretto#13630
seanbachelder wants to merge 2 commits intoDataDog:mainfrom
seanbachelder:main

Conversation

@seanbachelder
Copy link

@seanbachelder seanbachelder commented Sep 22, 2022

This is a follow-up PR to #12559. That PR was reverted due to an issue with the updated dependency (missing tag for the specified version in Git). That issue has been resolved, so I am starting a new PR.

See #12559 for additional context

FYI @mightyguava @mx-psi

@seanbachelder seanbachelder requested review from a team as code owners September 22, 2022 23:48
@bits-bot
Copy link
Collaborator

bits-bot commented Sep 22, 2022

CLA assistant check
All committers have signed the CLA.

@mightyguava
Copy link
Contributor

Thank you for following up on this PR!

@mx-psi mx-psi added this to the 7.41.0 milestone Sep 26, 2022
@mx-psi mx-psi added changelog/no-changelog No changelog entry needed team/agent-apm trace-agent labels Sep 26, 2022
Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but will double check that the git tag is correct before merging. This will have to wait until the current merge freeze is over

@mx-psi
Copy link
Member

mx-psi commented Oct 13, 2022

Unfortunately, this is still broken:

$ GOPROXY=direct go mod tidy
# some omitted lines here
# ...
go: downloading github.com/outcaste-io/ristretto v0.2.0
# ...
# some more omitted lines here
verifying github.com/outcaste-io/ristretto@v0.2.0/go.mod: checksum mismatch
	downloaded: h1:LahBAYw9RQqN5qXr7uHrHyRwEivBjzRj/MQDUZGkPGY=
	go.sum:     h1:iBZA7RCt6jaOr0z6hiBQ6t662/oZ6Gx/yauuPvIWHAI=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
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'.

@seanbachelder
Copy link
Author

@mx-psi I tried creating a new project locally, ran go clean -modcache, and then ran go get github.com/outcaste-io/ristretto@v0.2.0. The go.sum file has the same checksum as present in this PR. Is there a cache in the build pipeline that could be causing issues?

@mx-psi
Copy link
Member

mx-psi commented Oct 13, 2022

My test was run locally, can you try GOPROXY=direct go get github.com/outcaste-io/ristretto@v0.2.0 and see if you get a different checksum?

@seanbachelder
Copy link
Author

Hmm.. interesting. When I test on my work laptop (Go v1.19.1), everything goes through fine. When I test with my personal laptop (Go v1.17), I get a similar error as to what you have, but with different checksums. The downloaded checksum is different than yours and the mismatch is occurring against sum.golang.org. So, I'm slightly confused atm

@mx-psi
Copy link
Member

mx-psi commented Oct 14, 2022

Hmm.. interesting. When I test on my work laptop (Go v1.19.1), everything goes through fine. When I test with my personal laptop (Go v1.17), I get a similar error as to what you have, but with different checksums. The downloaded checksum is different than yours and the mismatch is occurring against sum.golang.org. So, I'm slightly confused atm

@seanbachelder That's (most likely) because of your mod cache, not because of the Go version. You can try running go clean -modcache && GOPROXY=direct go get github.com/outcaste-io/ristretto@v0.2.0 to start with a clean cache.

@seanbachelder
Copy link
Author

@seanbachelder That's (most likely) because of your mod cache, not because of the Go version. You can try running go clean -modcache && GOPROXY=direct go get github.com/outcaste-io/ristretto@v0.2.0 to start with a clean cache.

It's weird, I'm seeing inconsistent behavior here and am not entirely sure what to think 🤔

Sometimes I see h1:T0654hri6Puf/JfTqg85QozN40gzR3Z9rJXCYJxqcAk= as the downloaded checksum:

go clean -modcache && GOPROXY=direct go get github.com/outcaste-io/ristretto@v0.2.0
go: downloading github.com/outcaste-io/ristretto v0.2.0
go: github.com/outcaste-io/ristretto@v0.2.0: verifying module: checksum mismatch
	downloaded: h1:T0654hri6Puf/JfTqg85QozN40gzR3Z9rJXCYJxqcAk=
	sum.golang.org: h1:47w059XTZWFt01OucwjcBt8mEa3VUUhntUWEfmgVBFc=

Other times I see h1:LahBAYw9RQqN5qXr7uHrHyRwEivBjzRj/MQDUZGkPGY=

go clean -modcache && GOPROXY=direct go get github.com/outcaste-io/ristretto@v0.2.0
go: github.com/outcaste-io/ristretto@v0.2.0: verifying go.mod: checksum mismatch
	downloaded: h1:LahBAYw9RQqN5qXr7uHrHyRwEivBjzRj/MQDUZGkPGY=
	sum.golang.org: h1:iBZA7RCt6jaOr0z6hiBQ6t662/oZ6Gx/yauuPvIWHAI=

I'm wondering if maybe the v0.2.0 version was published incorrectly / multiple times? I've never seen anything like this

@mx-psi
Copy link
Member

mx-psi commented Oct 17, 2022

I get message 1 if I have an empty go.sum, and message 2 if my go.sum has a line for this dependency (although the last lines refers to go.sum). I also don't know where this mismatch comes from, but it's not possible for a dependency to be published twice.

Whatever the reason may be, I can't accept this PR since it will break downstream consumers. It also looks like upstream has published a new version so I feel like we need a better justification on why we should use this fork.

@seanbachelder
Copy link
Author

Fair enough. I think I'll just close this for now. Appreciate the follow up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog No changelog entry needed team/agent-apm trace-agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants