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

Open
matloob opened this issue Oct 13, 2022 · 0 comments
Assignees
Milestone

Comments

@matloob
Copy link
Contributor

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 example.com/m2/q@v1.0.0 # download everything needed to build test of m2
! go test example.com/m2/q
stderr 'missing go.sum entry for go.mod for module example.com/generics at v1.0.0'

-- m1/go.mod --
module example.com/m1

go 1.20

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

import _ "example.com/m2/q"
-- m2/go.mod --
module example.com/m2

go 1.20

require example.com/generics v1.0.0
-- m2/q/q.go --
package q
-- m2/q/q_test.go --
package q

import _ "example.com/generics"

What did you expect to see?

The expected behavior is that we have all the sums we need to test a dependency package (example.com/m2/q).

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
Projects
None yet
Development

No branches or pull requests

2 participants