Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

goapp test won't run #320

Open
mblakele opened this issue Dec 15, 2014 · 1 comment
Open

goapp test won't run #320

mblakele opened this issue Dec 15, 2014 · 1 comment

Comments

@mblakele
Copy link

I've been thinking about creating some test cases, but goapp test isn't able to run. The environment seems to be fine otherwise: goapp serve works normally, and I can deploy to google.

This may be related to #292. If I apply the changes in that pull request then goapp test and goapp test ./... run without error. However that breaks goapp serve and the only solution for that seems to be https://groups.google.com/d/msg/google-appengine-go/dNhqV6PBqVc/VzQnW4gPElgJ and https://groups.google.com/d/msg/google-appengine-go/dNhqV6PBqVc/jmGIDIaVhBQJ and https://groups.google.com/d/msg/google-appengine-go/dNhqV6PBqVc/ihzI5vgdE1EJ — which requires some surgery, but may be the only way to fix the problem.

Here's the error from goapp test:

$ echo $GOROOT

$ echo $GOPATH
/Users/mblakele/opt/gocode
$ git co master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
$ git pull
Current branch master is up to date.
$ goapp test
utils.go:47:2: cannot find package "atom" in any of:
    /Users/mblakele/opt/go_appengine/goroot/src/pkg/atom (from $GOROOT)
    /Users/mblakele/opt/gocode/src/atom (from $GOPATH)
utils.go:48:2: cannot find package "rdf" in any of:
    /Users/mblakele/opt/go_appengine/goroot/src/pkg/rdf (from $GOROOT)
    /Users/mblakele/opt/gocode/src/rdf (from $GOPATH)
utils.go:49:2: cannot find package "rss" in any of:
    /Users/mblakele/opt/go_appengine/goroot/src/pkg/rss (from $GOROOT)
    /Users/mblakele/opt/gocode/src/rss (from $GOPATH)
user.go:45:2: cannot find package "sanitizer" in any of:
    /Users/mblakele/opt/go_appengine/goroot/src/pkg/sanitizer (from $GOROOT)
    /Users/mblakele/opt/gocode/src/sanitizer (from $GOPATH)
@maddyblue
Copy link
Owner

I'll merge #321 after the other two PRs are merged so this will work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants