gobuffalo / buffalo-auth

Buffalo auth plugin helps adding username password authentication to your app
https://gobuffalo.io
MIT License
41 stars 28 forks source link

plugin fails to install #74

Closed jwlogemann closed 4 years ago

jwlogemann commented 4 years ago

Hi, I'm trying to install this plugin with the command: 'buffalo plugins install github.com/gobuffalo/buffalo-auth'

But it gives the following error:

github.com/gobuffalo/buffalo/render ../../pkg/mod/github.com/gobuffalo/buffalo@v0.14.11/render/template_helpers.go:21:23: cannot use "github.com/gobuffalo/helpers/tags".JS (type func(string, "github.com/gobuffalo/tags/v3".Options) "html/template".HTML) as type func(string, "github.com/gobuffalo/tags".Options) "html/template".HTML in field value ../../pkg/mod/github.com/gobuffalo/buffalo@v0.14.11/render/template_helpers.go:22:23: cannot use "github.com/gobuffalo/helpers/tags".CSS (type func(string, "github.com/gobuffalo/tags/v3".Options) "html/template".HTML) as type func(string, "github.com/gobuffalo/tags".Options) "html/template".HTML in field value ../../pkg/mod/github.com/gobuffalo/buffalo@v0.14.11/render/template_helpers.go:23:16: cannot use "github.com/gobuffalo/helpers/tags".Img (type func(string, "github.com/gobuffalo/tags/v3".Options) "html/template".HTML) as type func(string, "github.com/gobuffalo/tags".Options) "html/template".HTML in field value

Any thoughts?

output of 'buffalo info':

-> Go: Checking installation ✓ The `go` executable was found on your system at: /usr/local/go/bin/go -> Go: Checking minimum version requirements ✓ Your version of Go, 1.13.7, meets the minimum requirements. -> Go: Checking Package Management ✓ You are using Go Modules (`go`) for package management. -> Go: Checking PATH ✓ Your PATH contains /home/jw/go/bin. -> Node: Checking installation ✓ The `node` executable was found on your system at: /usr/local/bin/node -> Node: Checking minimum version requirements ✓ Your version of Node, v12.16.1, meets the minimum requirements. -> NPM: Checking installation ✓ The `npm` executable was found on your system at: /usr/local/bin/npm -> NPM: Checking minimum version requirements ✓ Your version of NPM, 6.13.4, meets the minimum requirements. -> Yarn: Checking installation ✓ The `yarnpkg` executable was found on your system at: /usr/bin/yarnpkg -> Yarn: Checking minimum version requirements ✓ Your version of Yarn, 1.22.0, meets the minimum requirements. -> PostgreSQL: Checking installation ✘ The `postgres` executable could not be found on your system. For help setting up your Postgres environment please follow the instructions for you platform at: https://www.postgresql.org/download/ -> MySQL: Checking installation ✓ The `mysql` executable was found on your system at: /usr/bin/mysql -> MySQL: Checking minimum version requirements ✓ Your version of MySQL, 15.1, meets the minimum requirements. -> SQLite3: Checking installation ✘ The `sqlite3` executable could not be found on your system. For help setting up your SQLite3 environment please follow the instructions for you platform at: https://www.sqlite.org/download.html -> Cockroach: Checking installation ✘ The `cockroach` executable could not be found on your system. For help setting up your Cockroach environment please follow the instructions for you platform at: https://www.cockroachlabs.com/docs/stable/ -> Buffalo (CLI): Checking installation ✓ The `buffalo` executable was found on your system at: /usr/local/bin/buffalo -> Buffalo (CLI): Checking minimum version requirements ✓ Your version of Buffalo (CLI), v0.15.5, meets the minimum requirements. -> Buffalo: Application Details Pwd /home/jw/go/src/fkc Root /home/jw/go/src/fkc GoPath /home/jw/go PackagePkg fkc ActionsPkg fkc/actions ModelsPkg fkc/models GriftsPkg fkc/grifts WithModules true Name fkc Bin bin/fkc VCS git WithPop true WithSQLite false WithDep false WithWebpack true WithNodeJs true WithYarn true WithDocker true WithGrifts true AsWeb true AsAPI false InApp true PackageJSON {map[build:webpack -p --progress dev:webpack --watch]} -> Buffalo: config/buffalo-app.toml name = "fkc" bin = "bin/fkc" vcs = "git" with_pop = true with_sqlite = false with_dep = false with_webpack = true with_nodejs = true with_yarn = true with_docker = true with_grifts = true as_web = true as_api = false -> Buffalo: config/buffalo-plugins.toml [[plugin]] binary = "buffalo-pop" go_get = "github.com/gobuffalo/buffalo-pop" -> Buffalo: go.mod module fkc go 1.14 require ( github.com/gobuffalo/attrs v1.0.0 // indirect github.com/gobuffalo/buffalo v0.14.11 github.com/gobuffalo/buffalo-auth v1.3.0 // indirect github.com/gobuffalo/buffalo-pop v1.23.1 github.com/gobuffalo/envy v1.9.0 github.com/gobuffalo/fizz v1.9.8 // indirect github.com/gobuffalo/flect v0.2.1 // indirect github.com/gobuffalo/genny v0.6.0 // indirect github.com/gobuffalo/helpers v0.6.1 // indirect github.com/gobuffalo/meta v0.3.0 // indirect github.com/gobuffalo/mw-csrf v0.0.0-20190129204204-25460a055517 github.com/gobuffalo/mw-forcessl v0.0.0-20180802152810-73921ae7a130 github.com/gobuffalo/mw-i18n v0.0.0-20190129204410-552713a3ebb4 github.com/gobuffalo/mw-paramlogger v0.0.0-20190129202837-395da1998525 github.com/gobuffalo/packd v1.0.0 // indirect github.com/gobuffalo/packr/v2 v2.7.1 github.com/gobuffalo/pop v4.13.1+incompatible github.com/gobuffalo/suite v2.8.2+incompatible github.com/gobuffalo/validate v2.0.4+incompatible // indirect github.com/gobuffalo/validate/v3 v3.1.0 // indirect github.com/markbates/grift v1.1.0 github.com/spf13/cobra v0.0.6 // indirect github.com/unrolled/secure v0.0.0-20190103195806-76e6d4e9b90c golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d // indirect golang.org/x/mod v0.2.0 // indirect golang.org/x/net v0.0.0-20200226121028-0de0cce0169b // indirect golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae // indirect golang.org/x/tools v0.0.0-20200226224502-204d844ad48d // indirect golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect )
itskass commented 4 years ago

Same error for me too.

Edit: This is a duplicate issue, solution is to first run:

go get -u github.com/gobuffalo/buffalo
go get -u github.com/gobuffalo/buffalo-auth

Then

buffalo plugins install github.com/gobuffalo/buffalo-auth
buffalo generate auth

Answer from https://github.com/gobuffalo/buffalo-auth/issues/73 👍