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 1.14 install failed #340

Open yhyf opened 4 years ago

yhyf commented 4 years ago

go get -u github.com/ponzu-cms/ponzu/... like this : go: github.com/ponzu-cms/ponzu/system/item imports github.com/blevesearch/bleve imports github.com/blevesearch/bleve/index/scorch imports github.com/etcd-io/bbolt: github.com/etcd-io/bbolt@v1.3.4: parsing go.mod: module declares its path as: go.etcd.io/bbolt but was required as: github.com/etcd-io/bbolt

I would appreciate it if you could help me with it

nilslice commented 4 years ago

Hi @yhyf -

This is probably a good time to finally swap out the dependency on BoltDB with the drop-in replacement Bbolt.

If you are interested in trying this out, a global search & replace of: github.com/boltdb/bolt

with: github.com/etcd-io/bbolt

should do the trick... let me know if that helps! If you'd like to make a pull request including this change (assuming it works), that would be great!

yhyf commented 4 years ago

It`s github.com/etcd-io/bbolt package fault,in that package exists go.mod , but in go.mod named that package as go.etcd.io/bbolt