ponzu-cms / ponzu

Headless CMS with automatic JSON API. Featuring auto-HTTPS from Let's Encrypt, HTTP/2 Server Push, and flexible server framework written in Go.
https://docs.ponzu-cms.org
BSD 3-Clause "New" or "Revised" License
5.66k stars 387 forks source link

Error with "go get..." #354

Open EloFran opened 3 years ago

EloFran commented 3 years ago

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

sharop commented 3 years ago

Hi did the following steps:

  1. Create a mod
  2. install ponzu CLI
  3. Create a new project ( this project will be created in your %GOPATH)
  4. Create a symbolic link in the mod directory
  5. 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.

xguntis commented 3 years ago

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"?

sharop commented 3 years ago

Hi @xguntis I meant go mod init [MODULE NAME].

xguntis commented 3 years ago

@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: tmqAW4tPsI

sharop commented 3 years ago

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

hubyhuby commented 2 years ago

Install and running a new project worked for me today on ubuntu 20.04.

https://github.com/ponzu-cms/ponzu/issues/358#issuecomment-1055254355