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: go test reports module missing when no test files in the cwd #31270

Closed
davecheney opened this issue Apr 5, 2019 · 2 comments
Closed
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@davecheney
Copy link
Contributor

What version of Go are you using (go version)?

$go version
go version devel +964fe4b80f Thu Apr 4 00:26:24 2019 +0000 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

% mkdir ~/devel/mod.a && cd ~/devel/mod.a
% go mod init github.com/davecheney/mod.a
% go test

What did you expect to see?

can't load package: package github.com/davecheney/mod.a: no Go files in /Users/dfc/devel/mod.a

What did you see instead?

can't load package: package github.com/davecheney/mod.a: unknown import path "github.com/davecheney/mod.a": cannot find module providing package github.com/davecheney/mod.a
@thepudds thepudds changed the title go test reports module missing when no test files in the cwd cmd/go: go test reports module missing when no test files in the cwd Apr 8, 2019
@bcmills
Copy link
Contributor

bcmills commented Apr 11, 2019

I feel like this is a duplicate but I can't find it right now.

CC @jayconrod

@bcmills bcmills added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 11, 2019
@bcmills bcmills added this to the Go1.13 milestone Apr 11, 2019
@bcmills
Copy link
Contributor

bcmills commented Apr 11, 2019

Duplicate of #27122

@bcmills bcmills marked this as a duplicate of #27122 Apr 11, 2019
@bcmills bcmills closed this as completed Apr 11, 2019
@golang golang locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants