Skip to content

Conversation

@richardwilkes
Copy link

@richardwilkes richardwilkes commented Jul 28, 2016

This fixes issue #6

@miknie
Copy link

miknie commented Aug 28, 2016

This fixed the tool for me too, using go 1.5.3.
Thanks! :)

@annismckenzie
Copy link

Just for reference: this has nothing to do with the Go version – the error comes from the go-flags library and the specific commit that makes goviz segfault upon start was jessevdk/go-flags@7f2ab82 (merged on Feb 27, 2016). We should vendor the few dependencies that goviz has (I can do that if @hirokidaichi wants that).

Nevertheless, this PR should be merged immediately. :)

@bensooter
Copy link

This fixed the tool for me as well. Thanks!

@nathany
Copy link

nathany commented Oct 3, 2016

Thanks @hirokidaichi for this beautiful tool -- and @richardwilkes for this fix.

Works for me. go version go1.7.1 darwin/amd64

@nathany
Copy link

nathany commented Oct 5, 2016

Thanks @richardwilkes. Until this is merged, I'm installing a patched version of Goviz as follows:

mkdir -p ${GOPATH}/src/github.com/hirokidaichi/goviz
git clone git@github.com:RobotsAndPencils/goviz.git ${GOPATH}/src/github.com/hirokidaichi/goviz -o fork
go install github.com/hirokidaichi/goviz

UPDATE: that doesn't grab dependencies of goviz though, so I'm going to just rewrite import paths to make it simpler:

go get -u github.com/RobotsAndPencils/goviz

(I may merge some of the other pull requests there as well)

@carlisia
Copy link

Thanks for that patch @nathany, it worked for me. 👍

@adrianbrink
Copy link

Mh, this still doesn't work. I keep getting inputdir does not exist.

@nathany
Copy link

nathany commented Mar 23, 2017

Feel free to use my fork until this gets reviewed/merged.
go get -u github.com/RobotsAndPencils/goviz

@aseemk
Copy link

aseemk commented Apr 26, 2017

Thank you for the fork @nathany (and for the original fix @richardwilkes)!

@emcniece
Copy link

emcniece commented Oct 3, 2017

@adrianbrink not sure if this is by design, but try doing a go get [whatever] before running the full command.

➜  go goviz -i github.com/lestrrat/go-xslate | dot -Tpng -o xslate.png
inputdir does not exist.
 go get github.com/lestrrat/go-xslate%                                                                                                                                                                      ➜  go go get github.com/lestrrat/go-xslate
➜  go goviz -i github.com/lestrrat/go-xslate | dot -Tpng -o xslate.png
➜  go ls
bin        pkg        src        tutorial   xslate.png

@jmrodri
Copy link

jmrodri commented Mar 12, 2018

Without this patch goviz prints nothing. With this patch, things work fine.

@iselind
Copy link

iselind commented May 22, 2018

The value I give to -i has to be a package name, not a path. So setting your GOPATH env var properly should resolve your "inputdir does not exist" issue

@praneethpatil
Copy link

Great tool @hirokidaichi.
Thanks @richardwilkes for fix and @nathany it works great.

I did run into inputdir does not exist. but that was my bad cos I was prepending src/to the package path.

Just a note if people run into this, I ran the command from $GOPATH; -i option should have package path (e.g., github.com///). This path should be hand-typed and terminal will not auto complete.

@bLuka
Copy link

bLuka commented Sep 25, 2018

Seems there's no update. May @hirokidaichi merge this please?

Issue #12 is still active and should be definitively resolved with this! 👍

@zverevm
Copy link

zverevm commented Feb 8, 2019

This fixes issue #6

This really fixes the issue!
go1.11.2
Thank you very much!

@corpix corpix mentioned this pull request Apr 15, 2019
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

Successfully merging this pull request may close these issues.