ponzu
ponzu copied to clipboard
Error with "go get..."
when i type:
go get -u github.com/ponzu-cms/ponzu/...
Return:
cannot find package "github.com/blevesearch/zap/v11" in any of:
c:\go\src\github.com\blevesearch\zap\v11 (from $GOROOT)
C:\Users\eloyf\go\src\github.com\blevesearch\zap\v11 (from $GOPATH)
cannot find package "github.com/blevesearch/zap/v12" in any of:
c:\go\src\github.com\blevesearch\zap\v12 (from $GOROOT)
C:\Users\eloyf\go\src\github.com\blevesearch\zap\v12 (from $GOPATH)
cannot find package "github.com/blevesearch/zap/v13" in any of:
c:\go\src\github.com\blevesearch\zap\v13 (from $GOROOT)
C:\Users\eloyf\go\src\github.com\blevesearch\zap\v13 (from $GOPATH)
cannot find package "github.com/blevesearch/zap/v14" in any of:
c:\go\src\github.com\blevesearch\zap\v14 (from $GOROOT)
C:\Users\eloyf\go\src\github.com\blevesearch\zap\v14 (from $GOPATH)
PS E:\AAAPLICACIONES\PONZU\ponzu>
I dont understand why
thx
Hi did the following steps:
- Create a mod
- install ponzu CLI
- Create a new project ( this project will be created in your %GOPATH)
- Create a symbolic link in the mod directory
- run
ponzu build & ponzu run
and this works, but now the problem is... I cannot see the content generated or addons.
I hope this helps.
I am not able to install ponzu same as @EloFran. Getting the same error messages. @sharop, could you please explain in more details. What do you mean by "Create a mod"?
Hi @xguntis I meant go mod init [MODULE NAME]
.
@sharop I am sorry, i am very new to go. Do you mean go mod init blevesearch
?
i get this:
$ go mod init blevesearch
go: creating new go.mod: module blevesearch
I am not sure if that is what i need. I just need somehow to install the ponzu. I am following this tutorial: https://snipcart.com/blog/golang-ecommerce-ponzu-cms-demo
here is what i get now:
Hi, @xguntis. Yes, I do mean to create the mod. (that worked for me, at least to test ponzu). I have followed the same tutorial, but I changed a little bit.
I will try to explain every step that I did, I hope this help you ( I'm new programing in Go as well).
If you created the mod inside the "hello" directory (not is necessary that hello directory will be inside the gopath). Then inside execute:
go get -u -v github.com/ponzu-cms/ponzu/...
At the end you will see that go.mod and go.sum are modified with dependencies. then inside hello execute:
ponzu new [PONZU PROJECT]
yo will see that the project it's created inside the gopath by example: $GOATH/src/[PONZU PROJECT]. I did a link from that directory to my mod directory. Inside Hello directory execute.
ln -s $GOATH/src/[PONZU PROJECT] .
then cd to ponzu project, run ponzu build. (in my case did not send any error.) ponzu run --dev-https
I stop at this point because I couldn't generate content, I don't know why.
I hope this help you.
Sergio
Install and running a new project worked for me today on ubuntu 20.04.
https://github.com/ponzu-cms/ponzu/issues/358#issuecomment-1055254355