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

error command ponzu on windows 10 #290

Closed
mytrix-technology opened this issue Nov 25, 2018 · 7 comments
Closed

error command ponzu on windows 10 #290

mytrix-technology opened this issue Nov 25, 2018 · 7 comments

Comments

@mytrix-technology
Copy link

mytrix-technology commented Nov 25, 2018

I have error after install ponzu CLI
"'ponzu' is not recognized as an internal or external command,
operable program or batch file."

my GOPATH : echo %GOPATH%
E:\laragon\usr\go

my GOROOT : echo %GOROOT%
E:\laragon\bin\go\go1.9.2

Can anybody solve my problem??
Thanks

@sirikon
Copy link

sirikon commented Nov 26, 2018

Some questions to be sure that everything is fine:

  • Did the Ponzu CLI installation process returned any errors?
  • Did you try to run ponzu after closing and re-opening your terminal? (Even all of your open terminals, some times Windows is just weird)
  • Is $GOPATH/bin (Or E:\laragon\usr\go\bin) in your PATH environment variable on Windows?.
  • Can you see ponzu executable inside $GOPATH/bin ?.

@mytrix-technology
Copy link
Author

  • Did the Ponzu CLI installation process returned any errors?

  • Did you try to run ponzu after closing and re-opening your terminal? (Even all of your open terminals, some times Windows is just weird)

  • Is $GOPATH/bin (Or E:\laragon\usr\go\bin) in your PATH environment variable on Windows?.

  • Can you see ponzu executable inside $GOPATH/bin ?.

Did the Ponzu CLI installation process returned any errors?

No
Did you try to run ponzu after closing and re-opening your terminal? (Even all of your open terminals, some times Windows is just weird)
Yes I did
Is $GOPATH/bin (Or E:\laragon\usr\go\bin) in your PATH environment variable on Windows?.
Yes it is
Can you see ponzu executable inside $GOPATH/bin ?.
Yes I can see the ponzu executable.

But the problem is there is no ponzu executable on $GOROOT/bin. After I put the executable on $GOROOT/bin, the command "ponzu" was run.

@nilslice
Copy link
Contributor

Hi @mytrix-technology - would you try running the go get again, but hand-type (don't copy/paste) the last ... characters into the windows terminal?

go get -u github.com/ponzu-cms/ponzu/...

I think I have heard an issue before where the ... is copied on Windows as a unicode character and thus not properly interpreted by the go tool

@ahu
Copy link

ahu commented Dec 28, 2018

I have the same issue on macOS too. I tried several times and never see the ponzu under the bin folder.

I resolve this by cd into ponzu and run go install ./.... Then the executable ponzu is available.

@nilslice
Copy link
Contributor

@mytrix-technology @ahu - this may be related to the regression introduced (and now solved) in recent Go versions:

golang/go#29241

Try upgrading to the latest version of Go, hopefully it will fix this issue.

@yanshah
Copy link

yanshah commented May 10, 2019

just delete the 3 dots and retype it , it will work on windows

@nilslice
Copy link
Contributor

confirmed @yanshah's solution is correct. thank you!

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

5 participants