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 with "go get..." #354

Open
EloFran opened this issue Oct 19, 2020 · 6 comments
Open

Error with "go get..." #354

EloFran opened this issue Oct 19, 2020 · 6 comments

Comments

@EloFran
Copy link

EloFran commented Oct 19, 2020

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
Copy link

sharop commented Nov 27, 2020

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
Copy link

xguntis commented Dec 6, 2020

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
Copy link

sharop commented Dec 7, 2020

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

@xguntis
Copy link

xguntis commented Dec 8, 2020

@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
Copy link

sharop commented Dec 15, 2020

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
Copy link

hubyhuby commented Mar 1, 2022

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

#358 (comment)

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

4 participants