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

cmd/go: unexpected tidy behavior: missing sum for dependency of test of dependency #56222

matloob opened this issue Oct 13, 2022 · 0 comments


Copy link

matloob commented Oct 13, 2022

cc @bcmills

The following cmd/go script test unexpectedly passes:

cd m2
go mod tidy
cd ../m1
go mod tidy
go get -t # download everything needed to build test of m2
! go test
stderr 'missing go.sum entry for go.mod for module at v1.0.0'

-- m1/go.mod --

go 1.20

require v1.0.0
replace => ../m2
-- m1/p/p.go --
package p

import _ ""
-- m2/go.mod --

go 1.20

require v1.0.0
-- m2/q/q.go --
package q
-- m2/q/q_test.go --
package q

import _ ""

What did you expect to see?

The expected behavior is that we have all the sums we need to test a dependency package (

What did you see instead?

There's a sum missing error.

@bcmills bcmills self-assigned this Oct 14, 2022
@bcmills bcmills added this to the Backlog milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants