protolambda / gocyto

Callgraph analysis and visualization for Go
MIT License
162 stars 20 forks source link

panic: open index.gohtml: no such file or directory #8

Open NickLarsenNZ opened 3 years ago

NickLarsenNZ commented 3 years ago

I really like this tool :)

But, when I run gocyto --out out.html -web github.com/org/repo/... from within the module repository directory, I receive a panic:

panic: open index.gohtml: no such file or directory

goroutine 1 [running]:
html/template.Must(...)
        /usr/local/Cellar/go/1.17.2/libexec/src/html/template/template.go:374
main.main.func2({0x13aa400, 0xc010d21080})
        /Users/nick/dev/gocyto/main.go:97 +0x37f
main.main()
        /Users/nick/dev/gocyto/main.go:132 +0x6b4

It only works when I copy the index.gohtml file from the protolambda/gocyto repo into the current directory.