internal/testdir: move to cmd module #60059
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
CL 463276 converted the GOROOT/test/run.go test runner program to something that can be invoked via
go test
, and usedinternal/testdir
as the import path. It just needed to be something inside GOROOT/src and not a part of public API. It probably mostly commonly runs as part ofall.bash
, which was updated for the new invocation of the test.In https://go-review.googlesource.com/c/go/+/492985/comment/c3dbe9c2_fc1fe608/ @bcmills pointed out that it might be more appropriate to adjust the import path so that the package and its test is picked up when doing
go test cmd
instead ofgo test std
. That is, to make itcmd/internal/testdir
.I'll move if it there doesn't turn out to be a downside to it (other than the slightly longer import path, relevant when not using all.bash to run it, but one we're willing to accept for now; @aclements pointed out it's possible to shorten it via a helper if desired).
The text was updated successfully, but these errors were encountered: