qax-os / goreporter

A Golang tool that does static analysis, unit testing, code review and generate code quality report.
Apache License 2.0
3.13k stars 273 forks source link

Not finding all of my packages #46

Closed mattstratton closed 7 years ago

mattstratton commented 7 years ago

I have a project located in this path:

$GOPATH/src/github.com/devopsdays/devopsdays-cli

The file structure looks like this:

.
├── cmd
├── create
├── helpers
├── model
└── main.go
└── templates
    └── events

(that is to say, cmd, create, helpers, and model are all packages)

Inside of the $GOPATH/src/github.com/devopsdays/devopsdays-cli directory, I run: goreporter -p ../devopsdays-cli

The dependency graph doesn't show anything:

depgraph

However, if I go into the helpers directory and run:

goreporter -p ../helpers

I get the dep graph:

helpers

Any ideas on what I might be doing wrong?

wgliang commented 7 years ago

I generated the report on my computer as follows: goreporter -p ../devopsdays-cli or goreporter -p ../devopsdays-cli -f html

wechatimg7

You can read the error message printed on the console.

mattstratton commented 7 years ago

I was sure I tried that in the various combinations of paths, but I guess I didn't, since it works! Thanks! I knew it was going to be something weird I was doing :)