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

Pointer analysis failed no main/test packages to analyze #7

Open
ableocardo opened this issue Jun 25, 2021 · 2 comments
Open

Pointer analysis failed no main/test packages to analyze #7

ableocardo opened this issue Jun 25, 2021 · 2 comments

Comments

@ableocardo
Copy link

ableocardo commented Jun 25, 2021

Hello,

I can run gocyto on the latest version of the postgres-operator package but when I am trying to run gocyto on an older version of a package it throws -> panic: pointer analysis failed no main/test packages to analyze (check $GOROOT/$GOPATH)

The command, I am trying to run is :

gocyto --out output_graph_postgres35.json --query-dir /home/XXXX/go/pkg/mod/github.com/crunchydata/postgres-operator@v3.5.5-rc1+incompatible github.com/crunchydata/postgres-operator@v3.5.5-rc1+incompatible/...

@NickLarsenNZ
Copy link

What happens if you try from within the package?

Eg:

git clone https://github.com/crunchydata/postgres-operator /tmp/postgres-operator
pushd /tmp/postgres-operator

git checkout v3.5.5-rc1+incompatible # the ref seems to be gone, so maybe try an updated one
gocyto --out output_graph_postgres35.json github.com/crunchydata/postgres-operator/...

popd

@CodeCouturiers
Copy link

same by me

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

No branches or pull requests

3 participants