You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add the same line to net/http/internal (which is imported by net/http/transport.go), then deps_test.go doesn't complain. It seems like deps_test.go should still catch this somehow.
Possible ideas: check a package's transitive dependencies rather than just its immediate dependencies, or check that all of its immediate dependencies are also listed in pkgDeps.
The text was updated successfully, but these errors were encountered:
That would be my second suggestion ("check that all of its immediate dependencies are also listed in pkgDeps"), but my point is that deps_test.go should have caught this. It's also missing at least image/internal/imageutil, mime/quotedprintable, internal/singleflight, internal/mime, container/list, internal/syscall/unix, and internal/syscall/windows, so it's blind to transitive dependencies added via those packages too.
the dep test is designed before the internal package thing, a time
when adding packages to std packages is way harder.
I think the problem is that when a new internal package is introduced,
its dependency must be locked down in deps_test.go, but that was
not followed.
deps test just need to caught any package not explicitly locked down.
If I add
to net/http/client.go, then deps_test.go fails.
If I add the same line to net/http/internal (which is imported by net/http/transport.go), then deps_test.go doesn't complain. It seems like deps_test.go should still catch this somehow.
Possible ideas: check a package's transitive dependencies rather than just its immediate dependencies, or check that all of its immediate dependencies are also listed in pkgDeps.
The text was updated successfully, but these errors were encountered: