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 -i doesn't work if there are no Go files in the current directory. #3896

Closed
rogpeppe opened this issue Aug 2, 2012 · 4 comments

Comments

@rogpeppe
Copy link
Contributor

rogpeppe commented Aug 2, 2012

% go test ./...
warning: building out-of-date packages:
    launchpad.net/gocheck
    launchpad.net/goamz/ec2/ec2test
    launchpad.net/goamz/s3/s3test
    labix.org/v2/mgo
    launchpad.net/lpad
installing these packages with 'go test -i ./...' will speed future tests.

[...]
% go test -i ./...
can't load package: package launchpad.net/juju-core: no Go source files in
/home/rog/src/go/src/launchpad.net/juju-core
%
@robpike
Copy link
Contributor

robpike commented Aug 2, 2012

Comment 1:

Labels changed: added priority-later, removed priority-triage.

Owner changed to @rsc.

Status changed to Accepted.

@fsouza
Copy link
Contributor

fsouza commented Aug 2, 2012

Comment 2:

go test -i ./... works with multiple directories. It does not work only when one of the
files use relative imports.
In juju source, if you drop the relative import from the file version/version_test.go
(using launchpad.net/juju-core/version instead), go test -i ./... works fine.
When I just met this problem, I was going to report it, but I think I've just forgot
about it.

@fsouza
Copy link
Contributor

fsouza commented Aug 3, 2012

Comment 3:

Here is a patch: http://golang.org/cl/6457075/

@robpike
Copy link
Contributor

robpike commented Aug 15, 2012

Comment 4:

This issue was closed by revision 34976b9.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants