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

buffalo-auth generator doesn't work #56

Closed dschulz closed 4 years ago

dschulz commented 4 years ago

Description

buffalo-auth generator doesn't work.

Steps to Reproduce the Problem

Following the steps in the documentation.

  1. Create a new project
  2. Install the plugin
  3. Run auth generator

Expected Behavior

The generator should do what it should do and end successfully.

Actual Behavior

The generator fails:

$ buffalo generate auth
Error: templates/auth/new.plush.html: line 22: "user": unknown identifier
Usage:
  buffalo generate auth [flags]

Flags:
  -h, --help   help for auth

ERRO[0003] Error: exit status 1

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, meets the minimum requirements. -> Go: Checking GOPATH ✓ You appear to be operating inside of your GOPATH. -> Go: Checking Package Management ⚠ You do not appear to be using a package management system. It is strongly suggested that you use one of the following package management systems: * Go Modules (Recommended) - https://gobuffalo.io/en/docs/gomods * Dep - https://github.com/golang/dep For help setting up your Go environment please follow the instructions for you platform at: https://www.gopherguides.com/courses/preparing-your-environment-for-go-development -> Go: Checking PATH ✓ Your PATH contains /Users/dschulz/Golang/bin. -> Node: Checking installation ✓ The `node` executable was found on your system at: /opt/local/bin/node -> Node: Checking minimum version requirements ✓ Your version of Node, v12.12.0, meets the minimum requirements. -> NPM: Checking installation ✓ The `npm` executable was found on your system at: /opt/local/bin/npm -> NPM: Checking minimum version requirements ✓ Your version of NPM, 6.11.3, meets the minimum requirements. -> Yarn: Checking installation ✓ The `yarnpkg` executable was found on your system at: /Users/dschulz/.yarn/bin/yarnpkg -> Yarn: Checking minimum version requirements ✓ Your version of Yarn, 1.19.1, meets the minimum requirements. -> PostgreSQL: Checking installation ✓ The `postgres` executable was found on your system at: /Applications/Postgres.app/Contents/Versions/latest/bin/postgres -> PostgreSQL: Checking minimum version requirements ✓ Your version of PostgreSQL, 12.0.0, meets the minimum requirements. -> MySQL: Checking installation ✘ The `mysql` executable could not be found on your system. For help setting up your MySQL environment please follow the instructions for you platform at: https://www.mysql.com/downloads/ -> SQLite3: Checking installation ✓ The `sqlite3` executable was found on your system at: /opt/local/bin/sqlite3 -> SQLite3: Checking minimum version requirements ✘ Invalid Semantic Version -> 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.14.11, meets the minimum requirements. -> Buffalo: Application Details Pwd /Users/dschulz/Golang/src/crud33 Root /Users/dschulz/Golang/src/crud33 GoPath /Users/dschulz/Golang PackagePkg crud33 ActionsPkg crud33/actions ModelsPkg crud33/models GriftsPkg crud33/grifts WithModules false Name crud33 Bin bin/crud33 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 = "crud33" bin = "bin/crud33" 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-auth" go_get = "github.com/gobuffalo/buffalo-auth" [[plugin]] binary = "buffalo-pop" go_get = "github.com/gobuffalo/buffalo-pop" ```
timhanus commented 4 years ago

This looks like a duplicate of this one: https://github.com/gobuffalo/buffalo-auth/issues/54

dschulz commented 4 years ago

Yep, definitely. Thanks for pointing that out @timhanus

dschulz commented 4 years ago

Closing as it's a duplicate of #54