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

[BUG]: dependencies of 4.3.0 not buildable from source #2121

Open
eikemeier opened this issue Oct 19, 2024 · 0 comments
Open

[BUG]: dependencies of 4.3.0 not buildable from source #2121

eikemeier opened this issue Oct 19, 2024 · 0 comments
Labels
kind/bug Something is broken.

Comments

@eikemeier
Copy link

What version of Badger are you using?

v4.3.0

What version of Go are you using?

go1.23.2

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, CPU, OS)?

n/a

What steps will reproduce the bug?

go mod init example.com/badger-test

Add a file main.go:

package main

import (
	"fmt"

	"github.com/dgraph-io/badger/v4"
)

func main() {
	fmt.Println(badger.ErrDBClosed)
}
go get github.com/dgraph-io/badger/[email protected]
go mod tidy
fgrep github.com/dgraph-io/badger/v4 go.sum

You'll end ups with a go.mod containing:

github.com/dgraph-io/badger/v4 v4.3.0 h1:lcsCE1/1qrRhqP+zYx6xDZb8n7U+QlwNicpc676Ub40=
github.com/dgraph-io/badger/v4 v4.3.0/go.mod h1:Sc0T595g8zqAQRDf44n+z3wG4BOqLwceaFntt8KPxUM=

Now clean the module cache and try to build from source:

go clean -modcache
env GOPRIVATE=github.com/dgraph-io/badger go run .

go: downloading github.com/dgraph-io/badger/v4 v4.3.0
verifying github.com/dgraph-io/badger/[email protected]: checksum mismatch
downloaded: h1:JZ8tapVYg+6sFQqg+BOokAxX+t09UeVPsPoXIq7jlNg=
go.sum: h1:lcsCE1/1qrRhqP+zYx6xDZb8n7U+QlwNicpc676Ub40=

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.

Expected behavior and actual result.

The program should be buildable from source. Affects https://github.com/dgraph-io/dgraph v24.0.4:

https://github.com/dgraph-io/dgraph/blob/v24.0.4/go.sum#L143-L144

Additional information

The tagged version depends on github.com/google/flatbuffers v24.3.25+incompatible in go.mod while the version in the sumdb depends on github.com/google/flatbuffers v1.12.1.

@eikemeier eikemeier added the kind/bug Something is broken. label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something is broken.
Development

No branches or pull requests

1 participant