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.67k stars 387 forks source link

go module support #344

Closed RPing closed 3 years ago

RPing commented 4 years ago

Some dependency latest version enforced go module support, like bleve https://github.com/blevesearch/bleve/issues/1373

So build ponzu, that is GO111MODULE=off ponzu build, the following error occurs:

$ GO111MODULE=off ponzu build
../../blevesearch/bleve/index/scorch/segment_plugin.go:22:2: cannot find package "github.com/blevesearch/zap/v11" in any of:
    /usr/local/go/src/github.com/blevesearch/zap/v11 (from $GOROOT)
    /home/rpchen1228/go/src/github.com/blevesearch/zap/v11 (from $GOPATH)
Error: exit status 1
Usage:
  ponzu build [flags]

Examples:
$ ponzu build
(or)
$ ponzu build --gocmd=go1.8rc1

Flags:
  -h, --help   help for build

Global Flags:
      --gocmd string   custom go command if using beta or new release of Go (default "go")

exit status 1
nilslice commented 4 years ago

It would make a great PR :)

dmitridb commented 4 years ago

I don't really see this in the docs or anything but all I really had to do in order to get this up was vendoring the dependencies into what I was doing. So as follows, for an example:

git init go mod init github.com/dmitridb/ponzu-example go mod vendor ponzu build

olliephillips commented 4 years ago

Edit : I just misread your comment, you are building the server.

@dmitridb That's a good shout but the dependency piece is more about how Ponzu builds the ponzu server binary internally I think. It's been historically dependent on GOPATH, and does not reference go.mod. I'm pretty sure that's the case. Bit rusty myself TBH.

dmitridb commented 4 years ago

Yeah they really fixed all of that in recent version of golang it's pretty nice tbh

dmitridb commented 4 years ago

People were using all sorts of insane stuff before like gopkg.in or whatever so it's nice that they unified things

saeed-golshan commented 3 years ago

I have this problem too when I do this: git init go mod init github.com/dmitridb/ponzu-example go mod vendor ponzu build no content appeared when I make some content

Avarsa commented 3 years ago

I have this problem too when I do this: git init go mod init github.com/dmitridb/ponzu-example go mod vendor ponzu build no content appeared when I make some content

Same. Unable to see any content here. What could be happening here?

dmitridb commented 3 years ago

lmfao this is such a dead project are you guys seriously paying attention to my shitty little github page

hahaha

ok pro tip check where i cloned this from and see that it was given up on a long time ago, this whole project has like structural issues with it basically, like you don't want to use it i just cloned it a long time ago thinking i might want to fix it but gave up when i realized people are paying me for my time in front of the computer and i have better shit to do than fix some crap on github i didn't write in the first place

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Saturday, April 17, 2021 1:08 AM, Jinish Chandrababu @.***> wrote:

I have this problem too when I do this: git init go mod init github.com/dmitridb/ponzu-example go mod vendor ponzu build no content appeared when I make some content

Same. Unable to see any content here. What could be happening here?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

olliephillips commented 3 years ago

The project isn’t maintained anymore. Modules support isn’t there, and probably won’t ever be, unless someone forks the project and implements modules that’s where things are.