Giter Club home page Giter Club logo

cli's Introduction

PkgGoDev Standard Test Go Report Card

Buffalo CLI

This is the repo for the Buffalo CLI. The Buffalo CLI is a tool to develop, test and deploy your Buffalo applications.

Installation

To install the Buffalo CLI you can run the following command:

go install github.com/gobuffalo/cli/cmd/buffalo@latest

Usage

Once installed, the Buffalo CLI can be used by invoking the buffalo command. To know more about the available commands, run the buffalo help command. or you can also get details on a specific command by running buffalo help <command>.

cli's People

Contributors

alyxpractice avatar dependabot[bot] avatar fasmat avatar iaburton avatar paganotoni avatar rohrschacht avatar saurori avatar sio4 avatar thelonelyghost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cli's Issues

Buffalo build does not work with gitlab-ci

Description

The .gitlab-ci.yml file generated by buffalo new contains a script that symlinks the build directory into the GOPATH of the golang docker image: https://github.com/gobuffalo/buffalo/blob/c1594b9651f1e85c5f3f599c07a23ce8b1468405/genny/ci/templates/-dot-gitlab-ci.yml.tmpl#L7

If you try to run buffalo build in this environment, it will fail. The generated buffalo_build_main.go will contain relative imports to the a, actions and grifts packages, leading to local import in non-local package errors.

Steps to Reproduce the Problem

  1. Create a new project with buffalo new --ci-provider gitlab-ci <projectname>
  2. Add a build step to the generated .gitlab-ci.yml consisting of a buffalo build command
  3. Push the code to gitlab

Expected Behavior

The build should succeed.

Actual Behavior

The build fails with "local import in non-local package" errors.

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

Pwd is /home/n/go/src/github.com/nkovacs/buffdef, not /home/n/progs/nkovacs/buffdef as reported by buffalo info. This is actually a symlink to /home/n/progs/nkovacs/buffdef, to simulate the gitlab ci environment.

buffalo info
### Buffalo Version
v0.14.2

### App Information
Pwd=/home/n/progs/nkovacs/buffdef
Root=/home/n/go/src/github.com/nkovacs/buffdef
GoPath=/home/n/go
PackagePkg=../../progs/nkovacs/buffdef
ActionsPkg=../../progs/nkovacs/buffdef/actions
ModelsPkg=../../progs/nkovacs/buffdef/models
GriftsPkg=../../progs/nkovacs/buffdef/grifts
WithModules=false
Name=buffdef
Bin=bin/buffdef
VCS=git
WithPop=true
WithSQLite=false
WithDep=true
WithWebpack=true
WithNodeJs=true
WithYarn=true
WithDocker=true
WithGrifts=true
AsWeb=true
AsAPI=false
PackageJSON={map[]}

### Go Version
go version go1.10 linux/amd64

### Go Env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/n/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/n/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build618079501=/tmp/go-build -gno-record-gcc-switches"

### Node Version
v8.10.0

### NPM Version
5.6.0

### Yarn Version
1.12.1

### PostgreSQL Version
PostgreSQL Not Found

### MySQL Version
mysql  Ver 14.14 Distrib 5.7.25, for Linux (x86_64) using  EditLine wrapper

### SQLite Version
SQLite Not Found

### Dep Version
dep:
 version     : devel
 build date  : 
 git hash    : 
 go version  : go1.10
 go compiler : gc
 platform    : linux/amd64
 features    : ImportDuringSolve=false

### Dep Status
PROJECT                                             CONSTRAINT     VERSION        REVISION  LATEST   PKGS USED
dmitri.shuralyov.com/text/kebabcase                 branch master  branch master  0797b6d   0797b6d  1   
github.com/BurntSushi/toml                          v0.3.1         v0.3.1         3012a1d   v0.3.1   1   
github.com/ajg/form                                 v1.5.1         v1.5.1         5c4e226   v1.5.1   1   
github.com/blang/semver                             v3.5.1         v3.5.1         2ee8785   v3.5.1   1   
github.com/cockroachdb/cockroach-go                 branch master  branch master  e0a95df   e0a95df  1   
github.com/davecgh/go-spew                          v1.1.1         v1.1.1         8991bc2   v1.1.1   1   
github.com/dustin/go-humanize                       v1.0.0         v1.0.0         9f541cc   v1.0.0   1   
github.com/fatih/color                              v1.7.0         v1.7.0         5b77d2a   v1.7.0   1   
github.com/fatih/structs                            v1.1.0         v1.1.0         4966fc6   v1.1.0   1   
github.com/fsnotify/fsnotify                        v1.4.7         v1.4.7         c282820   v1.4.7   1   
github.com/go-sql-driver/mysql                      v1.4.1         v1.4.1         72cd26f   v1.4.1   1   
github.com/gobuffalo/buffalo                        ^0.14.2        v0.14.2        98c7d0b   v0.14.2  6   
github.com/gobuffalo/buffalo-plugins                v1.14.0        v1.14.0        41e6248   v1.14.0  2   
github.com/gobuffalo/buffalo-pop                    v1.9.0         v1.9.0         43e750e   v1.9.0   2   
github.com/gobuffalo/envy                           ^1.6.15        v1.6.15        fa0dfdc   v1.6.15  1   
github.com/gobuffalo/events                         v1.2.0         v1.2.0         7405490   v1.2.0   1   
github.com/gobuffalo/fizz                           v1.6.1         v1.6.1         b1746c6   v1.6.1   2   
github.com/gobuffalo/flect                          v0.1.1         v0.1.1         8be8aca   v0.1.1   2   
github.com/gobuffalo/genny                          branch master  branch master  e16e52a   e16e52a  1   
github.com/gobuffalo/github_flavored_markdown       v1.0.7         v1.0.7         c57d0cf   v1.0.7   6   
github.com/gobuffalo/gogen                          branch master  branch master  8f38393   8f38393  3   
github.com/gobuffalo/httptest                       v1.1.0         v1.1.0         294cbc0   v1.1.0   1   
github.com/gobuffalo/logger                         branch master  branch master  86e12af   86e12af  1   
github.com/gobuffalo/makr                           v1.1.5         v1.1.5         bfe5373   v1.1.5   1   
github.com/gobuffalo/mapi                           v1.0.1         v1.0.1         09ac528   v1.0.1   1   
github.com/gobuffalo/meta                           branch master  branch master  a532014   a532014  1   
github.com/gobuffalo/mw-csrf                        branch master  branch master  25460a0   25460a0  1   
github.com/gobuffalo/mw-forcessl                    branch master  branch master  6d1ef7f   6d1ef7f  1   
github.com/gobuffalo/mw-i18n                        branch master  branch master  337de00   337de00  1   
github.com/gobuffalo/mw-paramlogger                 branch master  branch master  0d45762   0d45762  1   
github.com/gobuffalo/nulls                          branch master  branch master  85f3c92   85f3c92  1   
github.com/gobuffalo/packd                          branch master  branch master  a385830   a385830  1   
github.com/gobuffalo/packr                          ^2.0.7         v2.0.7         fefbc1d   v2.0.7   7   
github.com/gobuffalo/plush                          v3.7.33        v3.7.33        f69cf36   v3.7.33  5   
github.com/gobuffalo/pop                            ^4.10.0        v4.10.0        9eeaaa1   v4.10.0  5   
github.com/gobuffalo/suite                          ^2.6.0         v2.6.0         9b4d77a   v2.6.0   2   
github.com/gobuffalo/syncx                          branch master  branch master  33c2958   33c2958  1   
github.com/gobuffalo/tags                           v2.0.16        v2.0.16        d22139b   v2.0.16  3   
github.com/gobuffalo/uuid                           v2.0.5         v2.0.5         3f70165   v2.0.5   1   
github.com/gobuffalo/validate                       v2.0.3         v2.0.3         f6f3be4   v2.0.3   2   
github.com/gobuffalo/x                              branch master  branch master  6bb1341   6bb1341  3   
github.com/gofrs/uuid                               v3.2.0         v3.2.0         6b08a5c   v3.2.0   1   
github.com/gorilla/context                          v1.1.1         v1.1.1         08b5f42   v1.1.1   1   
github.com/gorilla/mux                              v1.7.0         v1.7.0         a796238   v1.7.0   1   
github.com/gorilla/securecookie                     v1.1.1         v1.1.1         e59506c   v1.1.1   1   
github.com/gorilla/sessions                         v1.1.3         v1.1.3         f57b7e2   v1.1.3   1   
github.com/inconshreveable/mousetrap                v1.0           v1.0           76626ae   v1.0     1   
github.com/jackc/pgx                                v3.3.0         v3.3.0         c59c9ca   v3.3.0   6   
github.com/jmoiron/sqlx                             v1.2.0         v1.2.0         d161d7a   v1.2.0   2   
github.com/joho/godotenv                            v1.3.0         v1.3.0         23d116a   v1.3.0   1   
github.com/karrick/godirwalk                        v1.8.0         v1.8.0         6d1c776   v1.8.0   1   
github.com/kballard/go-shellquote                   branch master  branch master  95032a8   95032a8  1   
github.com/konsorten/go-windows-terminal-sequences  v1.0.2         v1.0.2         f55edac   v1.0.2   1   
github.com/lib/pq                                   v1.0.0         v1.0.0         4ded0e9   v1.0.0   2   
github.com/markbates/going                          v1.0.3         v1.0.3         7745e38   v1.0.3   2   
github.com/markbates/grift                          ^1.0.5         v1.0.5         ce869fe   v1.0.5   1   
github.com/markbates/hmax                           v1.0.0         v1.0.0         800e180   v1.0.0   1   
github.com/markbates/inflect                        v1.0.4         v1.0.4         24b8319   v1.0.4   1   
github.com/markbates/oncer                          branch master  branch master  bf2de49   bf2de49  1   
github.com/markbates/refresh                        v1.7.1         v1.7.1         fdf2220   v1.7.1   3   
github.com/markbates/safe                           v1.0.1         v1.0.1         6fea05a   v1.0.1   1   
github.com/markbates/sigtx                          v1.0.0         v1.0.0         daa2e5f   v1.0.0   1   
github.com/mattn/go-colorable                       v0.0.9         v0.0.9         167de6b   v0.0.9   1   
github.com/mattn/go-isatty                          v0.0.7         v0.0.7         c2a7a6c   v0.0.7   1   
github.com/mattn/go-sqlite3                         v1.10.0        v1.10.0        c7c4067   v1.10.0  1   
github.com/microcosm-cc/bluemonday                  v1.0.2         v1.0.2         506f3da   v1.0.2   1   
github.com/mitchellh/go-homedir                     v1.1.0         v1.1.0         af06845   v1.1.0   1   
github.com/monoculum/formam                         v3.1           v3.1           0a5cdaa   v3.1     1   
github.com/nicksnyder/go-i18n                       v1.10.0        v1.10.0        0dc1626   v1.10.0  4   
github.com/pelletier/go-toml                        v1.2.0         v1.2.0         c01d127   v1.2.0   1   
github.com/pkg/errors                               v0.8.1         v0.8.1         ba968bf   v0.8.1   1   
github.com/pmezard/go-difflib                       v1.0.0         v1.0.0         792786c   v1.0.0   1   
github.com/rogpeppe/go-internal                     v1.2.2         v1.2.2         1cf9852   v1.2.2   3   
github.com/serenize/snaker                          branch master  branch master  a683aaf   a683aaf  1   
github.com/sergi/go-diff                            v1.0.0         v1.0.0         1744e29   v1.0.0   1   
github.com/shurcooL/go                              branch master  branch master  3fef8c7   3fef8c7  4   
github.com/shurcooL/go-goon                         branch master  branch master  37c2f52   37c2f52  1   
github.com/shurcooL/graphql                         branch master  branch master  d48a9a7   d48a9a7  1   
github.com/sirupsen/logrus                          v1.4.0         v1.4.0         dae0fa8   v1.4.0   1   
github.com/sourcegraph/annotate                     branch master  branch master  f4cad6c   f4cad6c  1   
github.com/sourcegraph/syntaxhighlight              branch master  branch master  bd320f5   bd320f5  1   
github.com/spf13/cobra                              v0.0.3         v0.0.3         ef82de7   v0.0.3   1   
github.com/spf13/pflag                              v1.0.3         v1.0.3         298182f   v1.0.3   1   
github.com/stretchr/testify                         v1.3.0         v1.3.0         ffdc059   v1.3.0   3   
github.com/unrolled/secure                          ^1.0.0         v1.0.0         76e6d4e   v1.0.0   1   
golang.org/x/crypto                                 branch master  branch master  b7391e9   b7391e9  3   
golang.org/x/net                                    branch master  branch master  1272bf9   1272bf9  2   
golang.org/x/sync                                   branch master  branch master  e225da7   e225da7  1   
golang.org/x/sys                                    branch master  branch master  f7bb7a8   f7bb7a8  2   
golang.org/x/tools                                  branch master  branch master  36c10c0   ae772f1  12  
google.golang.org/appengine                         v1.5.0         v1.5.0         54a98f9   v1.5.0   1   
gopkg.in/yaml.v2                                    v2.2.2         v2.2.2         51d6538   v2.2.2   1   

### config/buffalo-app.toml
name = "buffdef"
bin = "bin/buffdef"
vcs = "git"
with_pop = true
with_sqlite = false
with_dep = true
with_webpack = true
with_nodejs = true
with_yarn = true
with_docker = true
with_grifts = true
as_web = true
as_api = false

### config/buffalo-plugins.toml
[[plugin]]
  binary = "buffalo-plugins"
  go_get = "github.com/gobuffalo/buffalo-plugins"

[[plugin]]
  binary = "buffalo-pop"
  go_get = "github.com/gobuffalo/buffalo-pop"

0.18 build fails

Description

I am trying to build a previously working project with buffalo 0.18 and it fails (0.17.x was fine)

Steps to Reproduce the Problem

buffalo build

Expected Behavior

no errors

Actual Behavior

golang_test               | DEBU[2021-11-26T08:56:19Z] Exec: go build -v -tags development -o bin/test -ldflags -linkmode external -extldflags "-static"
golang_test               | test/a
golang_test               | test/migrations
golang_test               | test
golang_test               | # test
golang_test               | ./buffalo_build_main.go:13:2: imported and not used: "test/models"
golang_test               | ./buffalo_build_main.go:14:2: imported and not used: "test/migrations"
golang_test               | DEBU[2021-11-26T08:56:20Z] Rollback: main.go
golang_test               | DEBU[2021-11-26T08:56:20Z] File: /test/test/main.go
golang_test               | DEBU[2021-11-26T08:56:20Z] Delete: a/aa.go
golang_test               | DEBU[2021-11-26T08:56:20Z] Delete: a/embed.go
golang_test               | DEBU[2021-11-26T08:56:20Z] Delete: a/inflections.json
golang_test               | DEBU[2021-11-26T08:56:20Z] Delete: buffalo_build_main.go
golang_test               | DEBU[2021-11-26T08:56:20Z] Delete: migrations/.pop-tmp.md
golang_test               | DEBU[2021-11-26T08:56:20Z] Delete: migrations/embed.go
golang_test               | DEBU[2021-11-26T08:56:20Z] Exec: go mod tidy
golang_test               | Usage:
golang_test               |   buffalo build [flags]
golang_test               |
golang_test               | Aliases:
golang_test               |   build, b, bill, install
golang_test               |
golang_test               | Flags:
golang_test               |       --clean-assets               will delete public/assets before calling webpack
golang_test               |       --dry-run                    runs the build 'dry'
golang_test               |       --environment string         set the environment for the binary (default "development")
golang_test               |   -e, --extract-assets             extract the assets and put them in a distinct archive
golang_test               |   -h, --help                       help for build
golang_test               |       --ldflags string             set any ldflags to be passed to the go build
golang_test               |       --mod string                 -mod flag for go build
golang_test               |   -o, --output string              set the name of the binary
golang_test               |   -k, --skip-assets                skip running webpack and building assets
golang_test               |       --skip-build-deps            skip building dependencies
golang_test               |       --skip-template-validation   skip validating templates
golang_test               |   -s, --static                     build a static binary using  --ldflags '-linkmode external -extldflags "-static"'
golang_test               |   -t, --tags string                compile with specific build tags
golang_test               |   -v, --verbose                    print debugging information
golang_test               |
golang_test               | ERRO[0001] Error: exit status 2

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

-> 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.17.3, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /go/bin.

-> Node: Checking installation
✘ The `node` executable could not be found on your system.
For help setting up your Node environment please follow the instructions for you platform at:

https://nodejs.org/en/download/

-> NPM: Checking installation
✘ The `npm` executable could not be found on your system.
For help setting up your NPM environment please follow the instructions for you platform at:

https://docs.npmjs.com/getting-started/configuring-your-local-environment

-> Yarn: Checking installation
✘ The `yarnpkg` executable could not be found on your system.
For help setting up your Yarn environment please follow the instructions for you platform at:

https://yarnpkg.com/en/docs/install

-> 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 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 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: /go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.18.0, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /test/test
Root        /test/test
GoPath      /go
PackagePkg  test
ActionsPkg  test/actions
ModelsPkg   test/models
GriftsPkg   test/grifts
WithModules true
Name        test
Bin         bin/test
VCS         git
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  true
WithGrifts  false
AsWeb       false
AsAPI       true
InApp       true
PackageJSON {map[]}

-> Buffalo: config/buffalo-app.toml
name = "test"
bin = "bin/test"
vcs = "git"
with_pop = false
with_sqlite = false
with_dep = false
with_webpack = false
with_nodejs = false
with_yarn = false
with_docker = true
with_grifts = false
as_web = false
as_api = true

-> Buffalo: config/config.go
package config
[...]

-> Buffalo: go.mod
module test

go 1.17

require (
	github.com/go-sql-driver/mysql v1.6.0
	github.com/gobuffalo/buffalo v0.18.0
	github.com/gobuffalo/envy v1.10.1
	github.com/gobuffalo/httptest v1.5.1
	github.com/gobuffalo/mw-contenttype v0.0.0-20190224202710-36c73cc938f3
	github.com/gobuffalo/mw-paramlogger v0.0.0-20190224201358-0d45762ab655
	github.com/gobuffalo/nulls v0.4.1
	github.com/gobuffalo/suite v2.8.2+incompatible
	github.com/gobuffalo/validate/v3 v3.3.1 // indirect
	github.com/gobuffalo/x v0.0.0-20190224155809-6bb134105960
	github.com/google/uuid v1.1.2
	github.com/jmoiron/sqlx v1.3.4
	github.com/pkg/errors v0.9.1
	github.com/rs/cors v1.6.0
	go.uber.org/zap v1.17.0
	golang.org/x/sys v0.0.0-20211124211545-fe61309f8881 // indirect
	gopkg.in/h2non/gock.v1 v1.0.15
)

require (
	github.com/BurntSushi/toml v0.4.1 // indirect
	github.com/Masterminds/semver/v3 v3.1.1 // indirect
	github.com/auth0/go-jwt-middleware v1.0.1 // indirect
	github.com/aymerick/douceur v0.2.0 // indirect
	github.com/cockroachdb/cockroach-go v0.0.0-20190925194419-606b3d062051 // indirect
	github.com/davecgh/go-spew v1.1.1 // indirect
	github.com/dustin/go-humanize v1.0.0 // indirect
	github.com/fatih/color v1.13.0 // indirect
	github.com/fatih/structs v1.1.0 // indirect
	github.com/felixge/httpsnoop v1.0.2 // indirect
	github.com/form3tech-oss/jwt-go v3.2.2+incompatible // indirect
	github.com/fsnotify/fsnotify v1.5.1 // indirect
	github.com/go-testfixtures/testfixtures/v3 v3.4.0 // indirect
	github.com/gobuffalo/events v1.4.2 // indirect
	github.com/gobuffalo/fizz v1.14.0 // indirect
	github.com/gobuffalo/flect v0.2.4 // indirect
	github.com/gobuffalo/genny v0.6.0 // indirect
	github.com/gobuffalo/github_flavored_markdown v1.1.1 // indirect
	github.com/gobuffalo/helpers v0.6.4 // indirect
	github.com/gobuffalo/logger v1.0.6 // indirect
	github.com/gobuffalo/meta v0.3.1 // indirect
	github.com/gobuffalo/mw-csrf v0.0.0-20190129204204-25460a055517 // indirect
	github.com/gobuffalo/packd v1.0.1 // indirect
	github.com/gobuffalo/plush v3.8.3+incompatible // indirect
	github.com/gobuffalo/plush/v4 v4.1.9 // indirect
	github.com/gobuffalo/pop v4.13.1+incompatible // indirect
	github.com/gobuffalo/pop/v6 v6.0.0 // indirect
	github.com/gobuffalo/tags/v3 v3.1.2 // indirect
	github.com/gobuffalo/validate v2.0.4+incompatible // indirect
	github.com/gofrs/uuid v4.2.0+incompatible // indirect
	github.com/gorilla/css v1.0.0 // indirect
	github.com/gorilla/handlers v1.5.1 // indirect
	github.com/gorilla/mux v1.8.0 // indirect
	github.com/gorilla/securecookie v1.1.1 // indirect
	github.com/gorilla/sessions v1.2.1 // indirect
	github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect
	github.com/inconshreveable/mousetrap v1.0.0 // indirect
	github.com/jackc/chunkreader/v2 v2.0.1 // indirect
	github.com/jackc/pgconn v1.10.1 // indirect
	github.com/jackc/pgio v1.0.0 // indirect
	github.com/jackc/pgpassfile v1.0.0 // indirect
	github.com/jackc/pgproto3/v2 v2.2.0 // indirect
	github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
	github.com/jackc/pgtype v1.9.0 // indirect
	github.com/jackc/pgx/v4 v4.14.0 // indirect
	github.com/joho/godotenv v1.4.0 // indirect
	github.com/karrick/godirwalk v1.16.1 // indirect
	github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
	github.com/lib/pq v1.10.4 // indirect
	github.com/luna-duclos/instrumentedsql v1.1.3 // indirect
	github.com/markbates/grift v1.5.0 // indirect
	github.com/markbates/oncer v1.0.0 // indirect
	github.com/markbates/refresh v1.12.0 // indirect
	github.com/markbates/safe v1.0.1 // indirect
	github.com/markbates/sigtx v1.0.0 // indirect
	github.com/mattn/go-colorable v0.1.12 // indirect
	github.com/mattn/go-isatty v0.0.14 // indirect
	github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
	github.com/microcosm-cc/bluemonday v1.0.16 // indirect
	github.com/mitchellh/go-homedir v1.1.0 // indirect
	github.com/monoculum/formam v3.5.5+incompatible // indirect
	github.com/pmezard/go-difflib v1.0.0 // indirect
	github.com/rogpeppe/go-internal v1.8.0 // indirect
	github.com/sergi/go-diff v1.2.0 // indirect
	github.com/sirupsen/logrus v1.8.1 // indirect
	github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
	github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
	github.com/spf13/cobra v1.2.1 // indirect
	github.com/spf13/pflag v1.0.5 // indirect
	github.com/stretchr/testify v1.7.0 // indirect
	go.uber.org/atomic v1.7.0 // indirect
	go.uber.org/multierr v1.6.0 // indirect
	golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
	golang.org/x/net v0.0.0-20211123203042-d83791d6bcd9 // indirect
	golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
	golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
	golang.org/x/text v0.3.7 // indirect
	gopkg.in/yaml.v2 v2.4.0 // indirect
	gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

replace (
	git.apache.org/thrift.git => github.com/apache/thrift v0.0.0-20180902110319-2566ecd5d999
	github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt v3.2.1+incompatible
	github.com/microcosm-cc/bluemonday => github.com/microcosm-cc/bluemonday v1.0.15
)

Failed creating new buffalo app in Debian WSL

Description

I've tried creating new project with buffalo but the generated files are not complete. I've read some related issues, check my GOPATH, update to latest Go, but still unable to get it done.

Steps to Reproduce the Problem

> pwd
/mnt/c/Users/intruder/go/src/github.com/karfianto

> buffalo new mypro --db-type mysql --ci-provider none --vcs none --skip-config
> cd mypro
> ls -la
total 192
drwxrwxrwx 1 sysadmin sysadmin   4096 Nov 13 23:31 .
drwxrwxrwx 1 sysadmin sysadmin   4096 Nov 13 23:30 ..
drwxrwxrwx 1 sysadmin sysadmin   4096 Nov 13 23:30 config
-rwxrwxrwx 1 sysadmin sysadmin   1432 Nov 13 23:30 database.yml
-rwxrwxrwx 1 sysadmin sysadmin   4457 Nov 13 23:31 go.mod
-rwxrwxrwx 1 sysadmin sysadmin 182529 Nov 13 23:31 go.sum
drwxrwxrwx 1 sysadmin sysadmin   4096 Nov 13 23:30 grifts
drwxrwxrwx 1 sysadmin sysadmin   4096 Nov 13 23:30 models
drwxrwxrwx 1 sysadmin sysadmin   4096 Nov 13 23:31 node_modules
-rwxrwxrwx 1 sysadmin sysadmin     86 Nov 13 23:31 yarn.lock 

Expected Behavior

Should be able to run gobuffalo dev

Actual Behavior

Error due to incomplete files.

Info

> 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.17.3, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /mnt/c/Users/intruder/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /usr/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v14.18.1, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /usr/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.15, 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.17, 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 was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.27.2, meets the minimum requirements.

-> Cockroach: Checking installation
✓ The `cockroach` executable was found on your system at: /usr/local/bin/cockroach

-> Cockroach: Checking minimum version requirements
✓ Your version of Cockroach, 19.2.4, meets the minimum requirements.

-> 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.17.6, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /mnt/c/Users/intruder/go/src/github.com/karfianto
Root        /mnt/c/Users/intruder/go/src/github.com/karfianto
GoPath      /mnt/c/Users/intruder/go
PackagePkg  github.com/karfianto
ActionsPkg  github.com/karfianto/actions
ModelsPkg   github.com/karfianto/models
GriftsPkg   github.com/karfianto/grifts
WithModules true
Name        karfianto
Bin         bin/karfianto
VCS
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  false
WithGrifts  false
AsWeb       true
AsAPI       false
InApp       false
PackageJSON {map[]}

`buffallo routes` doesn't display routes

Description

Executing buffalo routes doesn't output routes table.

Steps to Reproduce the Problem

  1. Creat several endpoints. By hand and as ressources.
  2. Execute buffalo routes

Expected Behavior

Get a list of all routes

Actual Behavior

No output.

Info

-> Go: Checking installation
✓ The `go` executable was found on your system at: /usr/local/opt/go/libexec/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.17.1, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains 

-> 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, v16.12.0, 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, 8.1.0, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /usr/local/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.17, 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/local/bin/mysql

-> MySQL: Checking minimum version requirements
✓ Your version of MySQL, 8.0.26, meets the minimum requirements.

-> SQLite3: Checking installation
✓ The `sqlite3` executable was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.32.3, meets the minimum requirements.

-> 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.17.5, meets the minimum requirements.

-> Buffalo: Application Details
Pwd        
Root       
GoPath    
PackagePkg  cardio_server
ActionsPkg  cardio_server/actions
ModelsPkg   cardio_server/models
GriftsPkg   cardio_server/grifts
WithModules true
Name        cardio_server
Bin         bin/cardio_server
VCS         none
WithPop     true
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  true
WithGrifts  true
AsWeb       false
AsAPI       true
InApp       true
PackageJSON {map[]}

-> Buffalo: config/buffalo-app.toml
name = "cardio_server"
bin = "bin/cardio_server"
vcs = "none"
with_pop = true
with_sqlite = false
with_dep = false
with_webpack = false
with_nodejs = false
with_yarn = false
with_docker = true
with_grifts = true
as_web = false
as_api = true

-> Buffalo: config/buffalo-plugins.toml
[[plugin]]
  binary = "buffalo-pop"
  go_get = "github.com/gobuffalo/buffalo-pop/v2"

-> Buffalo: go.mod
module cardio_server

go 1.17

require (
        github.com/gobuffalo/buffalo v0.17.4
        github.com/gobuffalo/buffalo-pop/v2 v2.3.0
        github.com/gobuffalo/envy v1.10.1
        github.com/gobuffalo/mw-contenttype v0.0.0-20190224202710-36c73cc938f3
        github.com/gobuffalo/mw-forcessl v0.0.0-20200131175327-94b2bd771862
        github.com/gobuffalo/mw-i18n v1.1.0
        github.com/gobuffalo/mw-paramlogger v1.0.0
        github.com/gobuffalo/packr/v2 v2.8.1
        github.com/gobuffalo/pop/v5 v5.3.4
        github.com/gobuffalo/suite v2.8.2+incompatible
        github.com/gobuffalo/x v0.1.0
        github.com/google/uuid v1.1.2
        github.com/jackc/pgx v3.6.2+incompatible
        github.com/markbates/grift v1.5.0
        github.com/minio/minio-go/v7 v7.0.15
        github.com/rs/cors v1.8.0
        github.com/swaggo/buffalo-swagger v1.1.1
        github.com/swaggo/swag v1.7.4
        github.com/unrolled/secure v1.0.9
)

require (
        github.com/BurntSushi/toml v0.4.1 // indirect
        github.com/KyleBanks/depth v1.2.1 // indirect
        github.com/Masterminds/semver/v3 v3.1.1 // indirect
        github.com/PuerkitoBio/purell v1.1.1 // indirect
        github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
        github.com/aymerick/douceur v0.2.0 // indirect
        github.com/cockroachdb/cockroach-go v0.0.0-20190925194419-606b3d062051 // indirect
        github.com/davecgh/go-spew v1.1.1 // indirect
        github.com/dustin/go-humanize v1.0.0 // indirect
        github.com/fatih/color v1.13.0 // indirect
        github.com/fatih/structs v1.1.0 // indirect
        github.com/felixge/httpsnoop v1.0.2 // indirect
        github.com/fsnotify/fsnotify v1.5.1 // indirect
        github.com/go-openapi/jsonpointer v0.19.5 // indirect
        github.com/go-openapi/jsonreference v0.19.6 // indirect
        github.com/go-openapi/spec v0.20.4 // indirect
        github.com/go-openapi/swag v0.19.15 // indirect
        github.com/go-sql-driver/mysql v1.6.0 // indirect
        github.com/gobuffalo/events v1.4.2 // indirect
        github.com/gobuffalo/fizz v1.13.0 // indirect
        github.com/gobuffalo/flect v0.2.4 // indirect
        github.com/gobuffalo/genny v0.6.0 // indirect
        github.com/gobuffalo/github_flavored_markdown v1.1.1 // indirect
        github.com/gobuffalo/helpers v0.6.3 // indirect
        github.com/gobuffalo/httptest v1.5.0 // indirect
        github.com/gobuffalo/logger v1.0.6 // indirect
        github.com/gobuffalo/meta v0.3.1 // indirect
        github.com/gobuffalo/mw-csrf v0.0.0-20190129204204-25460a055517 // indirect
        github.com/gobuffalo/nulls v0.4.1 // indirect
        github.com/gobuffalo/packd v1.0.1 // indirect
        github.com/gobuffalo/plush v3.8.3+incompatible // indirect
        github.com/gobuffalo/plush/v4 v4.1.8 // indirect
        github.com/gobuffalo/pop v4.13.1+incompatible // indirect
        github.com/gobuffalo/tags/v3 v3.1.1 // indirect
        github.com/gobuffalo/validate v2.0.4+incompatible // indirect
        github.com/gobuffalo/validate/v3 v3.3.1 // indirect
        github.com/gofrs/uuid v4.1.0+incompatible // indirect
        github.com/gorilla/css v1.0.0 // indirect
        github.com/gorilla/handlers v1.5.1 // indirect
        github.com/gorilla/mux v1.8.0 // indirect
        github.com/gorilla/securecookie v1.1.1 // indirect
        github.com/gorilla/sessions v1.2.1 // indirect
        github.com/inconshreveable/mousetrap v1.0.0 // indirect
        github.com/jackc/chunkreader/v2 v2.0.1 // indirect
        github.com/jackc/pgconn v1.10.0 // indirect
        github.com/jackc/pgio v1.0.0 // indirect
        github.com/jackc/pgpassfile v1.0.0 // indirect
        github.com/jackc/pgproto3/v2 v2.1.1 // indirect
        github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
        github.com/jackc/pgtype v1.8.1 // indirect
        github.com/jackc/pgx/v4 v4.13.0 // indirect
        github.com/jmoiron/sqlx v1.3.4 // indirect
        github.com/joho/godotenv v1.4.0 // indirect
        github.com/josharian/intern v1.0.0 // indirect
        github.com/json-iterator/go v1.1.11 // indirect
        github.com/karrick/godirwalk v1.16.1 // indirect
        github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
        github.com/klauspost/compress v1.13.5 // indirect
        github.com/klauspost/cpuid v1.3.1 // indirect
        github.com/lib/pq v1.10.2 // indirect
        github.com/luna-duclos/instrumentedsql v1.1.3 // indirect
        github.com/mailru/easyjson v0.7.7 // indirect
        github.com/markbates/errx v1.1.0 // indirect
        github.com/markbates/oncer v1.0.0 // indirect
        github.com/markbates/refresh v1.12.0 // indirect
        github.com/markbates/safe v1.0.1 // indirect
        github.com/markbates/sigtx v1.0.0 // indirect
        github.com/mattn/go-colorable v0.1.11 // indirect
        github.com/mattn/go-isatty v0.0.14 // indirect
        github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
        github.com/microcosm-cc/bluemonday v1.0.16 // indirect
        github.com/minio/md5-simd v1.1.0 // indirect
        github.com/minio/sha256-simd v0.1.1 // indirect
        github.com/mitchellh/go-homedir v1.1.0 // indirect
        github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
        github.com/modern-go/reflect2 v1.0.1 // indirect
        github.com/monoculum/formam v3.5.5+incompatible // indirect
        github.com/pelletier/go-toml v1.9.3 // indirect
        github.com/pkg/errors v0.9.1 // indirect
        github.com/pmezard/go-difflib v1.0.0 // indirect
        github.com/rogpeppe/go-internal v1.8.0 // indirect
        github.com/rs/xid v1.2.1 // indirect
        github.com/satori/go.uuid v1.2.0 // indirect
        github.com/sergi/go-diff v1.2.0 // indirect
        github.com/sirupsen/logrus v1.8.1 // indirect
        github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
        github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
        github.com/spf13/cobra v1.2.1 // indirect
        github.com/spf13/pflag v1.0.5 // indirect
        github.com/stretchr/testify v1.7.0 // indirect
        golang.org/x/crypto v0.0.0-20211115234514-b4de73f9ece8 // indirect
        golang.org/x/net v0.0.0-20211116231205-47ca1ff31462 // indirect
        golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
        golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c // indirect
        golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
        golang.org/x/text v0.3.7 // indirect
        golang.org/x/tools v0.1.7 // indirect
        gopkg.in/ini.v1 v1.62.0 // indirect
        gopkg.in/yaml.v2 v2.4.0 // indirect
        gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

go-sqlite3 console garbage when running buffalo task

Description

I created a simple task that creates an index on a Mongo collection. For some reason, I get SQLite C binding related errors. However, the task ran correctly even if I got this console garbage.

Steps to Reproduce the Problem

buffalo task createIndexes

Expected Behavior

Index should be created and no message should be shown in the terminal.

Actual Behavior

$ buffalo task createIndexes
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 |   return pNew;
       |          ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 |   Select standin;
       |   

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

-> 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.14.4, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /path/to/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /usr/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v14.3.0, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /usr/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.5, 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.4, 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 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: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.32.2, meets the minimum requirements.

-> 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.16.10, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /path/to/myapp
Root        /path/to/myapp
GoPath      /path/to/go
PackagePkg  myapp
ActionsPkg  myapp/actions
ModelsPkg   myapp/models
GriftsPkg   myapp/grifts
WithModules true
Name        myapp
Bin         bin\myapp
VCS         git
WithPop     false
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 = "myapp"
bin = "bin\\myapp"
vcs = "git"
with_pop = false
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/v2"

-> Buffalo: go.mod
module myapp

go 1.14

require (
	github.com/gobuffalo/buffalo v0.15.5
	github.com/gobuffalo/envy v1.9.0
	github.com/gobuffalo/fizz v1.10.0 // indirect
	github.com/gobuffalo/flect v0.2.1 // indirect
	github.com/gobuffalo/httptest v1.5.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/nulls v0.2.0
	github.com/gobuffalo/packr/v2 v2.8.0
	github.com/gobuffalo/pop v4.13.1+incompatible
	github.com/gobuffalo/suite v2.8.2+incompatible
	github.com/godror/godror v0.16.1
	github.com/jackc/pgconn v1.6.0 // indirect
	github.com/jmoiron/sqlx v1.2.0
	github.com/markbates/grift v1.5.0
	github.com/pkg/errors v0.9.1
	github.com/unrolled/secure v0.0.0-20190103195806-76e6d4e9b90c
	go.mongodb.org/mongo-driver v1.3.5
)

Unexpected! Unable to define my own subcommands or arguments, they get ignored/replaced by buffalo

Description

Let me quote the generated main.go:

main is the starting point for your Buffalo application. You can feel free and add to this main method, change what it does, etc... All we ask is that, at some point, you make sure to call app.Serve(), unless you don't want to start your application that is. :)

When buffalo build is run to compile your binary, this main function will be at the heart of that binary. It is expected that your main function will start your application using the app.Serve() method.

It does not say: you're not allowed to use subcommands or flags.

Steps to Reproduce the Problem

  1. buffalo new frontend
  2. Edit your main.go to this:
package main

import (
	"log"

	"github.com/myuser/frontend/actions"
	"github.com/spf13/cobra"
)

func main() {
	err := rootCmd.Execute()
	if err != nil {
		log.Fatal(err)
	}
}

var rootCmd = &cobra.Command{
	Use:     "frontend",
	Short:   "My amazing frontend built with buffalo",
	RunE: rootCmdRunE,
}

var fooCmd = &cobra.Command{
	Use:     "foo",
	Short:   "Foo does something special",
	Args:    cobra.NoArgs,
}

func init() {
	pflags := rootCmd.PersistentFlags()
	pflags.StringP("someflag", "s", "", "Some flag allowed to be set")

	rootCmd.AddCommand(fooCmd)
}

func rootCmdRunE(cmd *cobra.Command, args []string) (err error) {
	app := actions.App()
	return app.Serve()
}
  1. buffalo build
  2. ./bin/frontend --help
$ ./bin/frontend --help
Build Buffalo applications with ease

Usage:
  buffalo [command]

Available Commands:
  build       Build the application binary, including bundling of assets (packr & webpack)
  destroy     Destroy generated components
  dev         Run the Buffalo app in 'development' mode
  fix         Attempt to fix a Buffalo application's API to match version v0.16.16
  generate    Generate application components
  help        Help about any command
  info        Print diagnostic information (useful for debugging)
  new         Creates a new Buffalo application
  plugins     tools for working with buffalo plugins
  routes      Print all defined routes
  setup       Setup a newly created, or recently checked out application.
  task        Run grift tasks
  test        Run the tests for the Buffalo app. Use --force-migrations to skip schema load.
  version     Print the version information

Flags:
  -h, --help   help for buffalo

Use "buffalo [command] --help" for more information about a command.

Expected Behavior

I expected buffalo to use/respect/integrate my subcommands and flags. go run github.com/myuser/frontend --help produces this output:

$ go run github.com/myuser/frontend --help
My amazing frontend built with buffalo

Usage:
  frontend [flags]
  frontend [command]

Available Commands:
  foo         Foo does something special

Flags:
  -s, --someflag string     Some flag allowed to be set

Use "frontend [command] --help" for more information about a command.

Actual Behavior

My flags and subcommands don't exist in the built application. If I try ./bin/frontend foo:

$ ./bin/frontend foo
ERRO[0000] Error: unknown command "foo" for "buffalo"

Did you mean this?
        fix 
2020/12/07 23:03:28 exit status 255

Info

-> Go: Checking installation
✓ The `go` executable was found on your system at: /usr/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.14.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/myuser/Projects/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /home/myuser/.nvm/versions/node/v14.15.1/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v14.15.1, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /home/myuser/.nvm/versions/node/v14.15.1/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.8, meets the minimum requirements.

...

-> Buffalo (CLI): Checking installation
✓ The `buffalo` executable was found on your system at: /home/myuser/Projects/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.16.16, meets the minimum requirements.

...

Base docker-image is not existing (gobuffalo/buffalo:v0.17.5)

Description

The Dockerfile in a new project (created with the buffalo cli) references gobuffalo/buffalo:v0.17.5. The problem is that this image isn't exinsting on docker hub. (https://hub.docker.com/r/gobuffalo/buffalo/tags/)

Steps to Reproduce the Problem

  1. Create a new buffalo project using buffalo v0.17.5 on MacOS
  2. Try to build the docker-contantainer with the help of the Dockerfile included in the project.

Expected Behavior

There should be a docker image available for buffalo v0.17.5 so that I am capable of building the docker image.

Actual Behavior

The build of the docker-container fails.

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

stabilizing the new release

Known issue and stabilizing the new release

New app Webpack warning

Hello! Thank you so much for your interest in Buffalo. The fact you care enough to be here, right now, helping, makes us very happy.

Description

Running newly generated app shows webpack 5 warning:

(node:22444) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET] DeprecationWarning: Compilation.chunks was changed from Array to Set (using Array method 'map' is deprecated)

Steps to Reproduce the Problem

  1. buffalo new app
  2. cd app
  3. buffalo new
  4. buffalo dev

Expected Behavior

App should start without any warning or error.

Actual Behavior

App start and shows a warning:

(node:22444) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET] DeprecationWarning: Compilation.chunks was changed from Array to Set (using Array method 'map' is deprecated)

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

-> 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.17.1, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /Users/paganotoni/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, v15.7.0, 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, 7.4.3, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /Users/paganotoni/.yarn/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.5, 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, 14.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: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.36.0, meets the minimum requirements.

-> 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: /Users/paganotoni/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.17.5, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /Users/paganotoni/code/paganotoni/app
Root        /Users/paganotoni/code/paganotoni/app
GoPath      /Users/paganotoni/go
PackagePkg  app
ActionsPkg  app/actions
ModelsPkg   app/models
GriftsPkg   app/grifts
WithModules true
Name        app
Bin         bin/app
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 --mode production --progress dev:webpack --watch]}

-> Buffalo: config/buffalo-app.toml
name = "app"
bin = "bin/app"
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/v2"

-> Buffalo: go.mod
module app

go 1.17

require (
        github.com/gobuffalo/buffalo v0.17.3
        github.com/gobuffalo/buffalo-pop/v2 v2.3.0
        github.com/gobuffalo/envy v1.9.0
        github.com/gobuffalo/mw-csrf v1.0.0
        github.com/gobuffalo/mw-forcessl v0.0.0-20200131175327-94b2bd771862
        github.com/gobuffalo/mw-i18n v1.1.0
        github.com/gobuffalo/mw-paramlogger v1.0.0
        github.com/gobuffalo/packr/v2 v2.8.1
        github.com/gobuffalo/pop/v5 v5.3.4
        github.com/gobuffalo/suite v2.8.2+incompatible
        github.com/markbates/grift v1.5.0
        github.com/unrolled/secure v1.0.9
)

require (
        github.com/BurntSushi/toml v0.4.1 // indirect
        github.com/Masterminds/semver/v3 v3.1.1 // indirect
        github.com/cockroachdb/cockroach-go v0.0.0-20190925194419-606b3d062051 // indirect
        github.com/davecgh/go-spew v1.1.1 // indirect
        github.com/dustin/go-humanize v1.0.0 // indirect
        github.com/fatih/color v1.12.0 // indirect
        github.com/fatih/structs v1.1.0 // indirect
        github.com/felixge/httpsnoop v1.0.1 // indirect
        github.com/fsnotify/fsnotify v1.4.9 // indirect
        github.com/go-sql-driver/mysql v1.5.0 // indirect
        github.com/gobuffalo/events v1.4.1 // indirect
        github.com/gobuffalo/fizz v1.10.0 // indirect
        github.com/gobuffalo/flect v0.2.3 // indirect
        github.com/gobuffalo/genny v0.6.0 // indirect
        github.com/gobuffalo/github_flavored_markdown v1.1.0 // indirect
        github.com/gobuffalo/helpers v0.6.2 // indirect
        github.com/gobuffalo/httptest v1.5.0 // indirect
        github.com/gobuffalo/logger v1.0.4 // indirect
        github.com/gobuffalo/meta v0.3.0 // indirect
        github.com/gobuffalo/nulls v0.4.0 // indirect
        github.com/gobuffalo/packd v1.0.0 // indirect
        github.com/gobuffalo/plush v3.8.3+incompatible // indirect
        github.com/gobuffalo/plush/v4 v4.1.6 // indirect
        github.com/gobuffalo/pop v4.13.1+incompatible // indirect
        github.com/gobuffalo/tags/v3 v3.1.0 // indirect
        github.com/gobuffalo/validate v2.0.4+incompatible // indirect
        github.com/gobuffalo/validate/v3 v3.1.0 // indirect
        github.com/gofrs/uuid v3.2.0+incompatible // indirect
        github.com/gorilla/handlers v1.5.1 // indirect
        github.com/gorilla/mux v1.8.0 // indirect
        github.com/gorilla/securecookie v1.1.1 // indirect
        github.com/gorilla/sessions v1.2.1 // indirect
        github.com/inconshreveable/mousetrap v1.0.0 // indirect
        github.com/jackc/chunkreader/v2 v2.0.1 // indirect
        github.com/jackc/pgconn v1.8.1 // indirect
        github.com/jackc/pgio v1.0.0 // indirect
        github.com/jackc/pgpassfile v1.0.0 // indirect
        github.com/jackc/pgproto3/v2 v2.0.6 // indirect
        github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
        github.com/jackc/pgtype v1.7.0 // indirect
        github.com/jackc/pgx/v4 v4.11.0 // indirect
        github.com/jmoiron/sqlx v1.3.3 // indirect
        github.com/joho/godotenv v1.3.0 // indirect
        github.com/karrick/godirwalk v1.16.1 // indirect
        github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
        github.com/lib/pq v1.10.1 // indirect
        github.com/luna-duclos/instrumentedsql v1.1.3 // indirect
        github.com/markbates/errx v1.1.0 // indirect
        github.com/markbates/oncer v1.0.0 // indirect
        github.com/markbates/refresh v1.11.1 // indirect
        github.com/markbates/safe v1.0.1 // indirect
        github.com/markbates/sigtx v1.0.0 // indirect
        github.com/mattn/go-colorable v0.1.8 // indirect
        github.com/mattn/go-isatty v0.0.12 // indirect
        github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
        github.com/microcosm-cc/bluemonday v1.0.2 // indirect
        github.com/mitchellh/go-homedir v1.1.0 // indirect
        github.com/monoculum/formam v0.0.0-20210523135142-1af3317b7b9b // indirect
        github.com/pelletier/go-toml v1.9.3 // indirect
        github.com/pkg/errors v0.9.1 // indirect
        github.com/pmezard/go-difflib v1.0.0 // indirect
        github.com/rogpeppe/go-internal v1.5.2 // indirect
        github.com/sergi/go-diff v1.1.0 // indirect
        github.com/sirupsen/logrus v1.8.1 // indirect
        github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
        github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
        github.com/spf13/cobra v1.2.1 // indirect
        github.com/spf13/pflag v1.0.5 // indirect
        github.com/stretchr/testify v1.7.0 // indirect
        golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
        golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
        golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
        golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect
        golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf // indirect
        golang.org/x/text v0.3.5 // indirect
        gopkg.in/yaml.v2 v2.4.0 // indirect
        gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

Failed generate does not undo what did succeed.

Steps to Reproduce the Problem

If buffalo fails midway through generating a resource it does not undo what it has done in app.go. This is a very minor issue and was easy to resolve by deleting the duplicated resources from app.go. If I wasn't so new to go I'd be attempting to see if I could make a PR to fix this issue.

screen shot 2018-04-18 at 10 09 49 am

  1. call buffalo g resource users name email bio:nulls.Text with the buffalo executable file not found in $PATH. (execute buffalo without it being in your path folder).
    screen shot 2018-04-18 at 10 12 42 am
  2. repeat
  3. move buffalo to your path folder
  4. run buffalo g resource users name email bio:nulls.Text again

screen shot 2018-04-18 at 10 13 53 am

Expected Behavior

I think it would be nice if this was wrapped in some sort of transaction and would undo all steps if it fails midway through.

Info

### Buffalo Version
v0.11.0

### App Information
Pwd=/Users/alexharris/go/src/github.com/chasenyc/coke
Root=/Users/alexharris/go/src/github.com/chasenyc/coke
GoPath=/Users/alexharris/go
Name=coke
Bin=bin/coke
PackagePkg=github.com/chasenyc/coke
ActionsPkg=github.com/chasenyc/coke/actions
ModelsPkg=github.com/chasenyc/coke/models
GriftsPkg=github.com/chasenyc/coke/grifts
VCS=git
WithPop=true
WithDep=false
WithWebpack=true
WithYarn=true
WithDocker=true
WithGrifts=true

### Go Version
go version go1.8.3 darwin/amd64

### Go Env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/alexharris/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/tr/rznqg4rd7zbbq3qz8hb3wqhc0000gn/T/go-build573612720=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

### Node Version
v9.4.0

### NPM Version
5.6.0

### Yarn Version
1.3.2

### PostgreSQL Version
pg_ctl (PostgreSQL) 10.3

### MySQL Version
mysql  Ver 14.14 Distrib 5.7.21, for osx10.12 (x86_64) using  EditLine wrapper

### SQLite Version
3.16.0 2016-11-04 19:09:39 0e5ffd9123d6d2d2b8f3701e8a73cc98a3a7ff5f

### Dep Version
dep Not Found

### Dep Status
dep Not Found

Go version reported by `buffalo info` is potentially wrong

Description

Reported Go version with buffalo info is potentially wrong because auf two reasons:

  1. If clara is not found, the Go version used to build buffalo is returned (because of gobuffalo/clara#6). If one downloads buffalo from the release links, the reported version does not have anything to do with the actual version of Go that is installed.
  2. If clara is present, the reported version might still be wrong, because in this case the version of Go, which has been used to compile clara is reported, which still is not necessarily the version of Go, that is currently defined and used by the environment variables (e.g. PATH and GOROOT).

Steps to Reproduce the Problem

  1. Install Go 1.14.2, verify with go version, that this is the currently used version of Go.
  2. Make sure, clara command is not available (e.g. with which clara)
  3. Download buffalo v0.16.2 from the release page here on github (which has been built using Go 1.13.10)
  4. Execute buffalo info and check the reported Go version

Expected Behavior

buffalo info should report the Go version from go version currently used by the system, based on PATH and GOROOT.

Actual Behavior

buffalo info does report the version of Go, that has been used to build buffalo (or if present clara).

Should be able to run buffalo commands inside of the tree of a project

We should be able to run buffalo commands from anywhere in the tree, currently, it is only possible for the root of the directory per this bit that determines if we're in a buffalo project:

func insideBuffaloProject() bool {
	if _, err := os.Stat(".buffalo.dev.yml"); err != nil {
		return false
	}

	return true
}

Should this be reworked?

Use Dart-Sass instead of Node-Sass

Since node-sass is deprecated we should move to use Dart-Sass. This would imply updates to the Webpack configuration as well as other dependencies in the packages.json.

Test database needs to be created in advance after v0.18.0

Description

After I upgrade my project to v0.18.0, test database needs to pre-exist. Is it possible to revert a part of this change?

In internal/cmd/test.go, test.Dialect.DropDB() returns error and exits the command if the database doesn't exist.

Caused by internal/cmd/test.go

  • v0.18.0
// drop the test db:
if err := test.Dialect.DropDB(); err != nil {
		return err
}
  • v0.17.7
// drop the test db:
test.Dialect.DropDB()

Steps to Reproduce the Problem

  • Create buffalo project
buffalo new buffalo-test
cd buffalo-test
  • Run test
buffalo test
  • Error says
buffalo test 
Usage:
  buffalo test [flags]

Flags:
  -h, --help   help for test

ERRO[0000] Error: error dropping PostgreSQL database buffalo_test_test: ERROR: database "buffalo_test_test" does not exist (SQLSTATE 3D000) 

After I create buffalo_test_test database (with create database buffalo_test_test ) manually, the error disappeared.

Expected Behavior

Test starts regardless of test database's existence

Actual Behavior

Test is unable to start without pre-existing database specified in database.yml

Info

 buffalo info
-> Go: Checking installation
✓ The `go` executable was found on your system at: /opt/homebrew/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.17.5, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /Users/sasatanikazue/dev/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /Users/sasatanikazue/.nodebrew/current/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v17.3.1, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /Users/sasatanikazue/.nodebrew/current/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 8.3.0, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /Users/sasatanikazue/.nodebrew/current/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.17, meets the minimum requirements.

-> PostgreSQL: Checking installation
✓ The `postgres` executable was found on your system at: /opt/homebrew/bin/postgres

-> PostgreSQL: Checking minimum version requirements
✓ Your version of PostgreSQL, 14.1.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: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.36.0, meets the minimum requirements.

-> 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.18.2, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /Users/sasatanikazue/dev/buffalo_test
Root        /Users/sasatanikazue/dev/buffalo_test
GoPath      /Users/sasatanikazue/dev/go
PackagePkg  buffalo_test
ActionsPkg  buffalo_test/actions
ModelsPkg   buffalo_test/models
GriftsPkg   buffalo_test/grifts
WithModules true
Name        buffalo-test
Bin         bin/buffalo-test
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 --mode production --progress dev:webpack --watch]}

-> Buffalo: config/buffalo-app.toml
name = "buffalo-test"
bin = "bin/buffalo-test"
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/v3@latest"

-> Buffalo: go.mod
module buffalo_test

go 1.17

require (
	github.com/gobuffalo/buffalo v0.18.2
	github.com/gobuffalo/buffalo-pop/v3 v3.0.2
	github.com/gobuffalo/envy v1.10.1
	github.com/gobuffalo/mw-csrf v1.0.0
	github.com/gobuffalo/mw-forcessl v0.0.0-20200131175327-94b2bd771862
	github.com/gobuffalo/mw-i18n/v2 v2.0.1
	github.com/gobuffalo/mw-paramlogger v1.0.0
	github.com/gobuffalo/pop/v6 v6.0.1
	github.com/gobuffalo/suite/v4 v4.0.2
	github.com/markbates/grift v1.5.0
	github.com/unrolled/secure v1.0.9
)

require (
	github.com/BurntSushi/toml v0.4.1 // indirect
	github.com/Masterminds/semver/v3 v3.1.1 // indirect
	github.com/aymerick/douceur v0.2.0 // indirect
	github.com/davecgh/go-spew v1.1.1 // indirect
	github.com/dustin/go-humanize v1.0.0 // indirect
	github.com/fatih/color v1.13.0 // indirect
	github.com/fatih/structs v1.1.0 // indirect
	github.com/felixge/httpsnoop v1.0.1 // indirect
	github.com/fsnotify/fsnotify v1.5.1 // indirect
	github.com/go-sql-driver/mysql v1.6.0 // indirect
	github.com/gobuffalo/events v1.4.2 // indirect
	github.com/gobuffalo/fizz v1.14.0 // indirect
	github.com/gobuffalo/flect v0.2.4 // indirect
	github.com/gobuffalo/github_flavored_markdown v1.1.1 // indirect
	github.com/gobuffalo/helpers v0.6.4 // indirect
	github.com/gobuffalo/httptest v1.5.1 // indirect
	github.com/gobuffalo/logger v1.0.6 // indirect
	github.com/gobuffalo/meta v0.3.1 // indirect
	github.com/gobuffalo/nulls v0.4.1 // indirect
	github.com/gobuffalo/plush/v4 v4.1.9 // indirect
	github.com/gobuffalo/tags/v3 v3.1.2 // indirect
	github.com/gobuffalo/validate/v3 v3.3.1 // indirect
	github.com/gofrs/uuid v4.2.0+incompatible // indirect
	github.com/gorilla/css v1.0.0 // indirect
	github.com/gorilla/handlers v1.5.1 // indirect
	github.com/gorilla/mux v1.8.0 // indirect
	github.com/gorilla/securecookie v1.1.1 // indirect
	github.com/gorilla/sessions v1.2.1 // indirect
	github.com/inconshreveable/mousetrap v1.0.0 // indirect
	github.com/jackc/chunkreader/v2 v2.0.1 // indirect
	github.com/jackc/pgconn v1.10.1 // indirect
	github.com/jackc/pgio v1.0.0 // indirect
	github.com/jackc/pgpassfile v1.0.0 // indirect
	github.com/jackc/pgproto3/v2 v2.1.1 // indirect
	github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
	github.com/jackc/pgtype v1.8.1 // indirect
	github.com/jackc/pgx/v4 v4.13.0 // indirect
	github.com/jmoiron/sqlx v1.3.4 // indirect
	github.com/joho/godotenv v1.4.0 // indirect
	github.com/karrick/godirwalk v1.16.1 // indirect
	github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
	github.com/luna-duclos/instrumentedsql v1.1.3 // indirect
	github.com/markbates/oncer v1.0.0 // indirect
	github.com/markbates/refresh v1.12.0 // indirect
	github.com/markbates/safe v1.0.1 // indirect
	github.com/markbates/sigtx v1.0.0 // indirect
	github.com/mattn/go-colorable v0.1.9 // indirect
	github.com/mattn/go-isatty v0.0.14 // indirect
	github.com/mattn/go-sqlite3 v1.14.9 // indirect
	github.com/microcosm-cc/bluemonday v1.0.16 // indirect
	github.com/mitchellh/go-homedir v1.1.0 // indirect
	github.com/monoculum/formam v3.5.5+incompatible // indirect
	github.com/nicksnyder/go-i18n v1.10.1 // indirect
	github.com/pelletier/go-toml v1.9.3 // indirect
	github.com/pkg/errors v0.9.1 // indirect
	github.com/pmezard/go-difflib v1.0.0 // indirect
	github.com/rogpeppe/go-internal v1.8.0 // indirect
	github.com/sergi/go-diff v1.2.0 // indirect
	github.com/sirupsen/logrus v1.8.1 // indirect
	github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
	github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
	github.com/spf13/cobra v1.2.1 // indirect
	github.com/spf13/pflag v1.0.5 // indirect
	github.com/stretchr/testify v1.7.0 // indirect
	golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
	golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
	golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
	golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e // indirect
	golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
	golang.org/x/text v0.3.6 // indirect
	gopkg.in/yaml.v2 v2.4.0 // indirect
	gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

Upgrading buffalo app (0.18.1) fails with template error

~~~ Rewriting Imports ~~~
~~~ Checking webpack.config.js ~~~
Usage:
  buffalo fix [flags]

Aliases:
  fix, update

Flags:
  -h, --help   help for fix
  -y, --y      update all without asking for confirmation

ERRO[0007] Error: template: "webpack" is an incomplete or empty template

Previous buffalo version is v0.15.5, actual go version 1.17.3
Buffalo info gives no errors.

no sqlite support of homebrew release?

Description

Since I had problem with an existing project I thought I try a new one.

Steps to Reproduce the Problem

$ brew install gobuffalo/tap/buffalo
$ buffalo new coke --skip-yarn --skip-webpack --db-type sqlite3
Usage:
  buffalo new [name] [flags]

Flags:
      --api                  skip all front-end code and configure for an API server
      --ci-provider string   specify the type of ci file you would like buffalo to generate [none, travis, gitlab-ci] (default "none")
      --config string        config file (default is $HOME/.buffalo.yaml)
      --db-type string       specify the type of database you want to use [cockroach, mariadb, mysql, postgres] (default "postgres")
      --docker string        specify the type of Docker file to generate [none, multi, standard] (default "multi")
  -d, --dry-run              dry run
  -f, --force                delete and remake if the app already exists
  -h, --help                 help for new
      --module string        specify the root module (package) name. [defaults to 'automatic']
      --skip-config          skips using the config file
      --skip-pop             skips adding pop/soda to your app
      --skip-webpack         skips adding Webpack to your app
      --skip-yarn            use npm instead of yarn for frontend dependencies management
      --vcs string           specify the Version control system you would like to use [none, git, bzr] (default "git")
  -v, --verbose              verbosely print out the go get commands

ERRO[0001] Error: unknown dialect "sqlite3" expecting one of cockroach, mariadb, mysql, postgres 

Expected Behavior

It should generate the app skeleton.

Actual Behavior

It seems like the homebrew release does not come with sqlite support.

Info

$ buffalo info
-> Go: Checking installation
✓ The `go` executable was found on your system at: /usr/local/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.13.6, meets the minimum requirements.

-> Go: Checking Package Management
⚠ You do not appear to be using Go Modules.

* Go Modules (Recommended) - https://gobuffalo.io/en/docs/gomods

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/tcurdt/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, v13.7.0, 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.6, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /usr/local/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.21.1, 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 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: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.28.0, meets the minimum requirements.

-> 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.4, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /Users/tcurdt/Downloads
Root        /Users/tcurdt/Downloads
GoPath      /Users/tcurdt/go
PackagePkg  Downloads
ActionsPkg  Downloads/actions
ModelsPkg   Downloads/models
GriftsPkg   Downloads/grifts
WithModules true
Name        Downloads
Bin         bin/Downloads
VCS         
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  false
WithGrifts  false
AsWeb       true
AsAPI       false
InApp       false
PackageJSON {map[]}

Possible .env file exposure

Description

When the new project is created with buffalo, the .env file is exposed publicly by default

Steps to Reproduce the Problem

Development:

  1. Create a new project with buffalo new coke
  2. Run your application buffalo dev
  3. Visit http://127.0.0.1:3000/.env in your browser
  4. The .env file is shown

Build and deploy:

  1. Create a new project with buffalo new coke
  2. Build your application buffalo build
  3. Put the binary and .env file in the same folder and start the app
  4. Visit http://127.0.0.1:3000/.env in your browser
  5. The .env file is shown

Expected Behavior

The 404 error is thrown since the .env file is not in the public/ folder

Actual Behavior

The .env file is shown

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.14.13, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /home/milos/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /usr/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v10.23.2, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /usr/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.10, 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.21.1, 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.16.21, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /var/www/html/tmp/coke
Root        /var/www/html/tmp/coke
GoPath      /home/milos/go
PackagePkg  coke
ActionsPkg  coke/actions
ModelsPkg   coke/models
GriftsPkg   coke/grifts
WithModules true
Name        coke
Bin         bin/coke
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 = "coke"
bin = "bin/coke"
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/v2"

-> Buffalo: go.mod
module coke

go 1.15

require (
        github.com/gobuffalo/buffalo v0.15.5
        github.com/gobuffalo/buffalo-pop/v2 v2.3.0
        github.com/gobuffalo/envy v1.9.0
        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/packr/v2 v2.8.0
        github.com/gobuffalo/pop/v5 v5.3.0
        github.com/unrolled/secure v0.0.0-20190103195806-76e6d4e9b90c
)



Error Message for missing buffalo-pop plugin is incorrect

Description

Calling buffalo pop create -a for the first time displays an incorrect error message.

Steps to Reproduce the Problem

Please describe in painful detail what you did (so others can play along with you) to get to this point. This includes things like the exact command(s) you used, or the curl command you used, that sort of thing.

  1. Call buffalo pop create -a
  2. The following error message is displayed:
ERRO[0000] Pop support has been moved to the https://github.com/gobuffalo/buffalo-pop plugin.

!! PLEASE READ PLUGIN DOCUMENTATION - https://gobuffalo.io/en/docs/plugins

Buffalo Plugins Installation*:

        $ buffalo plugins install github.com/gobuffalo/buffalo-pop

Expected Behavior

The correct command line should be

$ buffalo plugins install github.com/gobuffalo/buffalo-pop/v3@latest

The default node packages are outdated and contains security issues

(branched from gobuffalo/buffalo#2144 (comment))

Moving the discussion in the above issue here since the original issue was about https://github.com/gobuffalo/docs and the following issue is of https://github.com/gobuffalo/cli.

Now I'm at:
<...>
It's a python issue and it appears you need python2 and I have python 3. There has to be a better way :( I hate python, it truly sucks.

Oh well, not sure this project is maintained anymore. So many deprecated dependencies.

@tresero, "Now" means when you were trying to run buffalo new books right? Yeah, indeed, currently it has some deprecated dependencies in the packages.json mostly in devDependencies section, and also they have some sub dependencies containing security issues.

Recently, I was working on this issue for my old project using buffalo and I think my humble temporary patch (against a vanilla project) may work for you too. You can find the patch from https://gist.github.com/sio4/61687c81c318582948017bd43a8aabe8

In this patch, I updated node-sass from "~4.13.1" to "~6.0.1" along with some other packages, and it has worked well so far.

FYI, buffalo cli (the package be installed by the command) was introduced recently and the command buffalo is now not a part of this repo anymore.

Not sure what you mean. So the docs are completely wrong. I'm not sure what to do at this point. It looked promising, but...

What I mean is that previously the package "buffalo" provided the buffalo command but now the command has its own dedicated project named "cli" under the "buffalo eco-system". The repository is here, and the release note about this change is there: https://github.com/gobuffalo/buffalo/releases/tag/v0.17.0

This is a very new change that happened this month, and I would say "the docs need to be updated accordingly" instead of "completely wrong". One of them is my PR for adding 'v'. :-)

So...

Description

The default npm packages configured by buffalo new in packages.json are outdated and contains security issues.

  • node-sass compilation error (needs python2)
  • security issue on tar (added by copy-webpack-plugin, fixed at 4.4.18)
  • security issue on glob-parent (added by copy-webpack-plugin, fixed at 5.1.2)
  • security issue on trim-newlines (added by node-sass indirectly via meow, fixed at 3.0.1)

Steps to Reproduce the Problem

  1. make sure you don't have python2 installed
  2. Install a recent version of buffalo (0.17.x)
  3. run buffalo new coke --> will end with compilation error (node-sass)
  4. check security issues on the installed node packages.

Expected Behavior

New and clean app skeleton without compilation errors.

Actual Behavior

Compilation errors and old/deprecated packages with security issues were configured/installed.

Info

This issue is related to gobuffalo/buffalo#2100 and gobuffalo/buffalo#2144

-> Go: Checking installation
✓ The `go` executable was found on your system at: /opt/google/go/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.16.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/sio4/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.6/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v14.17.6, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.6/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.15, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.6/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.11, 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, 8.0.26, meets the minimum requirements.

-> SQLite3: Checking installation
✓ The `sqlite3` executable was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.31.1, meets the minimum requirements.

-> 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: /home/sio4/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.17.2, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /home/sio4/git/cook
Root        /home/sio4/git/cook
GoPath      /home/sio4/go
PackagePkg  cook
ActionsPkg  cook/actions
ModelsPkg   cook/models
GriftsPkg   cook/grifts
WithModules true
Name        cook
Bin         bin/cook
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 --mode production --progress dev:webpack --watch]}

-> Buffalo: config/buffalo-app.toml
name = "cook"
bin = "bin/cook"
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/v2"

-> Buffalo: go.mod
module cook

go 1.16

require github.com/gobuffalo/buffalo-pop/v2 v2.3.0 // indirect

New application with buffalo 0.18: could not find templates errors

Hello! Thank you so much for this amazing work.

I am new in the go community, and attempting to get into it through gobuffalo.
I managed to make a basic app with the version 0.17, I updated buffalo yesterday and created a new app and I have wome troubles.
Sorry in advance if it is due to my little experience in go.

Description

I am getting few templating errors while running the application, I attempted to fix one but I am getting others.

Steps to Reproduce the Problem

I am creating an application from scratch using the buffalo new command :

  1. buffalo new app --skip-yarn
  2. buffalo generate resource myres field
  3. buffalo pop create -a
  4. buffalo pop migrate -d
  5. buffalo dev I am getting :
actions/myres.go:9:5: missing go.sum entry for module providing package github.com/gobuffalo/x/responder (imported by app/actions); to add:
        go get app/actions
  1. alright I install app/actions go get app/actions, I alternatively tried go mod tidy
  2. Navigate to http://127.0.0.1:3000/myres/ => HTTP 500
/myres/index.plush.html: could not find template /myres/index.plush.html
  1. Attempt to fix I am removing the leading slash .. sed -i 's/r\.HTML("\//r\.HTML("/' actions/*
  2. Fixed: Navigate to http://127.0.0.1:3000/myres/ => HTTP 200
  3. Navigate to http://127.0.0.1:3000/myres/new/ => HTTP 500
ERRO[2021-11-26T11:35:32+01:00] myres/new.plush.html: line 6: could not call formFor function: could not call partial function: could not find template myres/_form.html content_type=text/html db=0s duration="844.951µs" human_size="0 B" method=GET params="{}" path=/myres/new/ render="239.728µs" request_id=574afe828c378f66fbff-324887f00626b70b5fda size=0 status=500
ERRO[2021-11-26T11:35:33+01:00] could not find favicon.ico status=404
  1. My generated templates folder
├── templates
│   ├── application.plush.html
│   ├── embed.go
│   ├── _flash.plush.html
│   ├── index.plush.html
│   └── myres
│       ├── edit.plush.html
│       ├── _form.plush.html
│       ├── index.plush.html
│       ├── new.plush.html
│       └── show.plush.html

cat templates/myres/new.plush.html

<div class="py-4 mb-2">
  <h3 class="d-inline-block">New Myre</h3>
</div>

<%= formFor(myre, {action: myresPath(), method: "POST"}) { %>
  <%= partial("myres/form.html") %>
  <%= linkTo(myresPath(), {class: "btn btn-warning", "data-confirm": "Are you sure?", body: "Cancel"}) %>
<% } %>

Expected Behavior

My expected behavior is that it is working out of the box (like my first attempts with buffalo 0.17) and also that the dependencies are resolved (if that is the problem).

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

-> Go: Checking installation
✓ The `go` executable was found on your system at: /home/lolo/go/go1.17.3/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.17.3, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /home/lolo/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, v14.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, 7.23.0, meets the minimum requirements.

-> Yarn: Checking installation
✘ The `yarnpkg` executable could not be found on your system.
For help setting up your Yarn environment please follow the instructions for you platform at:

https://yarnpkg.com/en/docs/install

-> 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: /home/lolo/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.18.0, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /tmp/buffalo-test/app
Root        /tmp/buffalo-test/app
GoPath      /home/lolo/go
PackagePkg  app
ActionsPkg  app/actions
ModelsPkg   app/models
GriftsPkg   app/grifts
WithModules true
Name        app
Bin         bin/app
VCS         git
WithPop     true
WithSQLite  false
WithDep     false
WithWebpack true
WithNodeJs  true
WithYarn    false
WithDocker  true
WithGrifts  true
AsWeb       true
AsAPI       false
InApp       true
PackageJSON {map[build:webpack --mode production --progress dev:webpack --watch]}

-> Buffalo: config/buffalo-app.toml
name = "app"
bin = "bin/app"
vcs = "git"
with_pop = true
with_sqlite = false
with_dep = false
with_webpack = true
with_nodejs = true
with_yarn = false
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/v3@latest"

-> Buffalo: go.mod
module app

go 1.17

require (
        github.com/gobuffalo/buffalo v0.18.0
        github.com/gobuffalo/buffalo-pop/v3 v3.0.1
        github.com/gobuffalo/envy v1.10.1
        github.com/gobuffalo/mw-csrf v1.0.0
        github.com/gobuffalo/mw-forcessl v0.0.0-20200131175327-94b2bd771862
        github.com/gobuffalo/mw-i18n/v2 v2.0.1
        github.com/gobuffalo/mw-paramlogger v1.0.0
        github.com/gobuffalo/pop/v6 v6.0.0
        github.com/gobuffalo/suite/v4 v4.0.2
        github.com/gobuffalo/validate/v3 v3.3.1
        github.com/gobuffalo/x v0.0.0-20190224155809-6bb134105960
        github.com/gofrs/uuid v4.1.0+incompatible
        github.com/markbates/grift v1.5.0
        github.com/unrolled/secure v1.0.9
)

require (
        github.com/BurntSushi/toml v0.4.1 // indirect
        github.com/Masterminds/semver/v3 v3.1.1 // indirect
        github.com/aymerick/douceur v0.2.0 // indirect
        github.com/davecgh/go-spew v1.1.1 // indirect
        github.com/dustin/go-humanize v1.0.0 // indirect
        github.com/fatih/color v1.13.0 // indirect
        github.com/fatih/structs v1.1.0 // indirect
        github.com/felixge/httpsnoop v1.0.1 // indirect
        github.com/fsnotify/fsnotify v1.5.1 // indirect
        github.com/go-sql-driver/mysql v1.6.0 // indirect
        github.com/gobuffalo/events v1.4.2 // indirect
        github.com/gobuffalo/fizz v1.10.0 // indirect
        github.com/gobuffalo/flect v0.2.4 // indirect
        github.com/gobuffalo/github_flavored_markdown v1.1.1 // indirect
        github.com/gobuffalo/helpers v0.6.4 // indirect
        github.com/gobuffalo/httptest v1.5.1 // indirect
        github.com/gobuffalo/logger v1.0.6 // indirect
        github.com/gobuffalo/meta v0.3.1 // indirect
        github.com/gobuffalo/nulls v0.4.1 // indirect
        github.com/gobuffalo/plush/v4 v4.1.9 // indirect
        github.com/gobuffalo/tags/v3 v3.1.2 // indirect
        github.com/gorilla/css v1.0.0 // indirect
        github.com/gorilla/handlers v1.5.1 // indirect
        github.com/gorilla/mux v1.8.0 // indirect
        github.com/gorilla/securecookie v1.1.1 // indirect
        github.com/gorilla/sessions v1.2.1 // indirect
        github.com/inconshreveable/mousetrap v1.0.0 // indirect
        github.com/jackc/chunkreader/v2 v2.0.1 // indirect
        github.com/jackc/pgconn v1.10.1 // indirect
        github.com/jackc/pgio v1.0.0 // indirect
        github.com/jackc/pgpassfile v1.0.0 // indirect
        github.com/jackc/pgproto3/v2 v2.1.1 // indirect
        github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
        github.com/jackc/pgtype v1.8.1 // indirect
        github.com/jackc/pgx/v4 v4.13.0 // indirect
        github.com/jmoiron/sqlx v1.3.4 // indirect
        github.com/joho/godotenv v1.4.0 // indirect
        github.com/karrick/godirwalk v1.16.1 // indirect
        github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
        github.com/luna-duclos/instrumentedsql v1.1.3 // indirect
        github.com/markbates/oncer v1.0.0 // indirect
        github.com/markbates/refresh v1.12.0 // indirect
        github.com/markbates/safe v1.0.1 // indirect
        github.com/markbates/sigtx v1.0.0 // indirect
        github.com/mattn/go-colorable v0.1.9 // indirect
        github.com/mattn/go-isatty v0.0.14 // indirect
        github.com/mattn/go-sqlite3 v1.14.9 // indirect
        github.com/microcosm-cc/bluemonday v1.0.16 // indirect
        github.com/mitchellh/go-homedir v1.1.0 // indirect
        github.com/monoculum/formam v3.5.5+incompatible // indirect
        github.com/nicksnyder/go-i18n v1.10.1 // indirect
        github.com/pelletier/go-toml v1.9.3 // indirect
        github.com/pkg/errors v0.9.1 // indirect
        github.com/pmezard/go-difflib v1.0.0 // indirect
        github.com/rogpeppe/go-internal v1.8.0 // indirect
        github.com/sergi/go-diff v1.2.0 // indirect
        github.com/sirupsen/logrus v1.8.1 // indirect
        github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
        github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
        github.com/spf13/cobra v1.2.1 // indirect
        github.com/spf13/pflag v1.0.5 // indirect
        github.com/stretchr/testify v1.7.0 // indirect
        golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
        golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
        golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
        golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e // indirect
        golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
        golang.org/x/text v0.3.6 // indirect
        gopkg.in/yaml.v2 v2.4.0 // indirect
        gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

Thank you in advance!

ERROR in unable to locate ... glob on fresh project

Description

Hi, thanks for taking a look. I followed the instructions on the site to build a new project and I have an error on startup.

ERROR in unable to locate '/home/username/go/src/github.com/test/coke/assets/**/*' glob

Steps to Reproduce the Problem

➜ mkdir $GOPATH/src/github.com/test/

➜ cd $GOPATH/src/github.com/test/

➜ buffalo new coke

➜ cd coke/

➜ buffalo dev

Expected Behavior

I found a partial solution in the Slack channel was to move the project folder out of the $GOPATH which made the error go away.

➜ cd ..

➜ mv coke/ ~/tmp/

➜ cd ~/tmp/coke/

➜ buffalo dev
buffalo: 2022/01/31 10:38:27 === Rebuild on: :start: ===
buffalo: 2022/01/31 10:38:27 === Running: go build -v -tags development -o tmp/coke-build  (PID: 477403) ===
yarn run v1.22.17
$ webpack --watch
coke/models
coke/locales
coke/templates
coke/public
coke/actions
coke
buffalo: 2022/01/31 10:38:28 === Building Completed (PID: 477403) (Time: 1.404493787s) ===
buffalo: 2022/01/31 10:38:28 === Running: tmp/coke-build (PID: 477570) ===
<i> [LiveReloadPlugin] Live Reload listening on port 35729
INFO[2022-01-31T10:38:28-07:00] Starting application at http://127.0.0.1:3000
INFO[2022-01-31T10:38:28-07:00] Starting Simple Background Worker
assets by status 5.34 MiB [emitted]
  assets by info 5.27 MiB [immutable]
    asset application.e23889e04244d48cb995.css 3.51 MiB [emitted] [immutable] (name: application)
    asset application.88e6cc2591ea5c4ceb21.js 1.77 MiB [emitted] [immutable] (name: application)
  assets by path images/ 65.5 KiB
    asset images/logo.svg 64.4 KiB [emitted] [from: assets/images/logo.svg] [copied]
    asset images/favicon.ico 1.12 KiB [emitted] [from: assets/images/favicon.ico] [copied]
  asset manifest.json 397 bytes [emitted]
assets by status 363 KiB [compared for emit]
  asset 9bbb245e67a133f6e486d8d2545e14a5.eot 198 KiB [compared for emit] (auxiliary name: application)
  asset 23f19bb08961f37aaf692ff943823453.eot 131 KiB [compared for emit] (auxiliary name: application)
  asset 77206a6bb316fa0aded5083cc57f92b9.eot 33.2 KiB [compared for emit] (auxiliary name: application)
Entrypoint application 5.27 MiB (363 KiB) = application.e23889e04244d48cb995.css 3.51 MiB application.88e6cc2591ea5c4ceb21.js 1.77 MiB 3 auxiliary assets
orphan modules 4.14 MiB (javascript) 776 bytes (runtime) [orphan] 23 modules
runtime modules 495 bytes 2 modules
cacheable modules 1.7 MiB (javascript) 3.51 MiB (css/mini-extract)
  javascript modules 1.7 MiB
    modules by path ./node_modules/ 1.7 MiB
      modules by path ./node_modules/jquery/dist/*.js 283 KiB
        ./node_modules/expose-loader/dist/cjs.js?exposes=$,jQuery!./node_modules/jquery/dist/jquery-exposed.js 852 bytes [built] [code generated]
        ./node_modules/jquery/dist/jquery.js 282 KiB [built] [code generated]
      4 modules
    modules by path ./assets/ 260 bytes
      ./assets/css/application.scss 50 bytes [built] [code generated]
      ./assets/js/application.js 210 bytes [built] [code generated]
  css modules 3.51 MiB
    css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/@fortawesome/fontawesome-free/css/all.min.css 3.31 MiB [built] [code generated]
    css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/postcss-loader/src/index.js??ruleSet[1].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./assets/css/application.scss 202 KiB [built] [code generated]
webpack 5.52.1 compiled successfully in 6229 ms

But this doesn't help when I run docker build as I still run into the same error there.

➜ pwd
/home/ray.janoka/tmp/coke

➜ docker build .
Sending build context to Docker daemon  31.95MB
Step 1/20 : FROM gobuffalo/buffalo:v0.18.2 as builder
 ---> 8793350b1bc3
Step 2/20 : ENV GOPROXY http://proxy.golang.org
 ---> Using cache
 ---> de02e055df99
Step 3/20 : RUN mkdir -p /src/coke
 ---> Using cache
 ---> 6db645c41b27
Step 4/20 : WORKDIR /src/coke
 ---> Using cache
 ---> 52a1e2f1d3b2
Step 5/20 : ADD package.json .
 ---> Using cache
 ---> ef85f89d0149
Step 6/20 : ADD yarn.lock .
 ---> Using cache
 ---> 552205642237
Step 7/20 : RUN yarn install --no-progress
 ---> Using cache
 ---> e8d508adb81e
Step 8/20 : COPY go.mod go.mod
 ---> Using cache
 ---> bbad32fa246f
Step 9/20 : COPY go.sum go.sum
 ---> Using cache
 ---> 5290defe303d
Step 10/20 : RUN go mod download
 ---> Using cache
 ---> 47e40149dabf
Step 11/20 : ADD . .
 ---> b57ed77c01f3
Step 12/20 : RUN buffalo build --static -o /bin/app
 ---> Running in 70de69ccc9d6
ERRO[2022-01-31T17:43:25Z] yarn run v1.22.17
$ webpack --mode production --progress
<s> [webpack.Progress] 0% 

<s> [webpack.Progress] 1% setup initialize
<s> [webpack.Progress] 1% setup initialize
<s> [webpack.Progress] 2% setup before run
...
<s> [webpack.Progress] 99% done plugins
<s> [webpack.Progress] 99% done plugins
<s> [webpack.Progress] 99% 

<s> [webpack.Progress] 99% cache begin idle
<s> [webpack.Progress] 99% cache begin idle
<s> [webpack.Progress] 100% 

<s> [webpack.Progress] 99% cache shutdown
<s> [webpack.Progress] 99% cache shutdown
<s> [webpack.Progress] 100% 

assets by status 5.13 MiB [cached] 6 assets
Entrypoint application = application.4bad16d534c1205c0759.css application.d0f52dfe5acd10143079.js 3 auxiliary assets
orphan modules 4.01 MiB (javascript) 776 bytes (runtime) [orphan] 23 modules
runtime modules 221 bytes 1 module
cacheable modules 1.7 MiB (javascript) 3.47 MiB (css/mini-extract)
  javascript modules 1.7 MiB
    modules by path ./node_modules/ 1.7 MiB
      modules by path ./node_modules/jquery/dist/*.js 282 KiB
        ./node_modules/expose-loader/dist/cjs.js?exposes=$,jQuery!./node_modules/jquery/dist/jquery-exposed.js 557 bytes [built] [code generated]
        ./node_modules/jquery/dist/jquery.js 282 KiB [built] [code generated]
      4 modules
    modules by path ./assets/ 260 bytes
      ./assets/css/application.scss 50 bytes [built] [code generated]
      ./assets/js/application.js 210 bytes [built] [code generated]
  css modules 3.47 MiB
    css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/@fortawesome/fontawesome-free/css/all.min.css 3.31 MiB [built] [code generated]
    css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/postcss-loader/src/index.js??ruleSet[1].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./assets/css/application.scss 163 KiB [built] [code generated]

ERROR in unable to locate '/src/coke/assets/**/*' glob

webpack 5.52.1 compiled with 1 error in 14151 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Usage:
  buffalo build [flags]

Aliases:
  build, b, bill, install

Flags:
      --clean-assets               will delete public/assets before calling webpack
      --dry-run                    runs the build 'dry'
      --environment string         set the environment for the binary (default "development")
  -e, --extract-assets             extract the assets and put them in a distinct archive
  -h, --help                       help for build
      --ldflags string             set any ldflags to be passed to the go build
      --mod string                 -mod flag for go build
  -o, --output string              set the name of the binary
  -k, --skip-assets                skip running webpack and building assets
      --skip-build-deps            skip building dependencies
      --skip-template-validation   skip validating templates
  -s, --static                     build a static binary using  --ldflags '-linkmode external -extldflags "-static"'
  -t, --tags string                compile with specific build tags
  -v, --verbose                    print debugging information

time="2022-01-31T17:43:25Z" level=error msg="Error: exit status 1"
The command '/bin/sh -c buffalo build --static -o /bin/app' returned a non-zero code: 255

Actual Behavior

➜ pwd
/home/ray.janoka/go/src/github.com/test/coke

➜ buffalo dev
buffalo: 2022/01/31 10:18:39 === Rebuild on: :start: ===
buffalo: 2022/01/31 10:18:39 === Running: go build -v -tags development -o tmp/coke-build  (PID: 473825) ===
yarn run v1.22.17
$ webpack --watch
buffalo: 2022/01/31 10:18:39 === Building Completed (PID: 473825) (Time: 251.283938ms) ===
buffalo: 2022/01/31 10:18:39 === Running: tmp/coke-build (PID: 473924) ===
INFO[2022-01-31T10:18:39-07:00] Starting application at http://127.0.0.1:3000
INFO[2022-01-31T10:18:39-07:00] Starting Simple Background Worker
<i> [LiveReloadPlugin] Live Reload listening on port 35729
assets by path *.eot 363 KiB
  asset 9bbb245e67a133f6e486d8d2545e14a5.eot 198 KiB [emitted] (auxiliary name: application)
  asset 23f19bb08961f37aaf692ff943823453.eot 131 KiB [emitted] (auxiliary name: application)
  asset 77206a6bb316fa0aded5083cc57f92b9.eot 33.2 KiB [emitted] (auxiliary name: application)
assets by info 5.27 MiB [immutable]
  asset application.7b642f7f226c99136832.css 3.51 MiB [emitted] [immutable] (name: application)
  asset application.6f6a56122590f4c3807e.js 1.77 MiB [emitted] [immutable] (name: application)
asset manifest.json 311 bytes [emitted]
Entrypoint application 5.27 MiB (363 KiB) = application.7b642f7f226c99136832.css 3.51 MiB application.6f6a56122590f4c3807e.js 1.77 MiB 3 auxiliary assets
orphan modules 4.14 MiB (javascript) 776 bytes (runtime) [orphan] 23 modules
runtime modules 495 bytes 2 modules
cacheable modules 1.7 MiB (javascript) 3.51 MiB (css/mini-extract)
  javascript modules 1.7 MiB
    modules by path ./node_modules/ 1.7 MiB
      modules by path ./node_modules/jquery/dist/*.js 283 KiB
        ./node_modules/expose-loader/dist/cjs.js?exposes=$,jQuery!./node_modules/jquery/dist/jquery-exposed.js 852 bytes [built] [code generated]
        ./node_modules/jquery/dist/jquery.js 282 KiB [built] [code generated]
      4 modules
    modules by path ./assets/ 260 bytes
      ./assets/css/application.scss 50 bytes [built] [code generated]
      ./assets/js/application.js 210 bytes [built] [code generated]
  css modules 3.51 MiB
    css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/@fortawesome/fontawesome-free/css/all.min.css 3.31 MiB [built] [code generated]
    css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/postcss-loader/src/index.js??ruleSet[1].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./assets/css/application.scss 202 KiB [built] [code generated]

ERROR in unable to locate '/home/ray.janoka/go/src/github.com/test/coke/assets/**/*' glob

webpack 5.52.1 compiled with 1 error in 6021 ms

Info

✦ ➜ 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.17.1, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /home/ray.janoka/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /usr/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v14.18.3, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /usr/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.15, 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.17, 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 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: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.31.1, meets the minimum requirements.

-> 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: /home/ray.janoka/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.18.2, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /home/ray.janoka/go/src/github.com/test/coke
Root        /home/ray.janoka/go/src/github.com/test/coke
GoPath      /home/ray.janoka/go
PackagePkg  coke
ActionsPkg  coke/actions
ModelsPkg   coke/models
GriftsPkg   coke/grifts
WithModules true
Name        coke
Bin         bin/coke
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 --mode production --progress dev:webpack --watch]}

-> Buffalo: config/buffalo-app.toml
name = "coke"
bin = "bin/coke"
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/v3@latest"

-> Buffalo: go.mod
module coke

go 1.17

require (
	github.com/gobuffalo/buffalo v0.18.2
	github.com/gobuffalo/buffalo-pop/v3 v3.0.2
	github.com/gobuffalo/envy v1.10.1
	github.com/gobuffalo/mw-csrf v1.0.0
	github.com/gobuffalo/mw-forcessl v0.0.0-20200131175327-94b2bd771862
	github.com/gobuffalo/mw-i18n/v2 v2.0.1
	github.com/gobuffalo/mw-paramlogger v1.0.0
	github.com/gobuffalo/pop/v6 v6.0.1
	github.com/gobuffalo/suite/v4 v4.0.2
	github.com/markbates/grift v1.5.0
	github.com/unrolled/secure v1.0.9
)

require (
	github.com/BurntSushi/toml v0.4.1 // indirect
	github.com/Masterminds/semver/v3 v3.1.1 // indirect
	github.com/aymerick/douceur v0.2.0 // indirect
	github.com/davecgh/go-spew v1.1.1 // indirect
	github.com/dustin/go-humanize v1.0.0 // indirect
	github.com/fatih/color v1.13.0 // indirect
	github.com/fatih/structs v1.1.0 // indirect
	github.com/felixge/httpsnoop v1.0.1 // indirect
	github.com/fsnotify/fsnotify v1.5.1 // indirect
	github.com/go-sql-driver/mysql v1.6.0 // indirect
	github.com/gobuffalo/events v1.4.2 // indirect
	github.com/gobuffalo/fizz v1.14.0 // indirect
	github.com/gobuffalo/flect v0.2.4 // indirect
	github.com/gobuffalo/github_flavored_markdown v1.1.1 // indirect
	github.com/gobuffalo/helpers v0.6.4 // indirect
	github.com/gobuffalo/httptest v1.5.1 // indirect
	github.com/gobuffalo/logger v1.0.6 // indirect
	github.com/gobuffalo/meta v0.3.1 // indirect
	github.com/gobuffalo/nulls v0.4.1 // indirect
	github.com/gobuffalo/plush/v4 v4.1.9 // indirect
	github.com/gobuffalo/tags/v3 v3.1.2 // indirect
	github.com/gobuffalo/validate/v3 v3.3.1 // indirect
	github.com/gofrs/uuid v4.2.0+incompatible // indirect
	github.com/gorilla/css v1.0.0 // indirect
	github.com/gorilla/handlers v1.5.1 // indirect
	github.com/gorilla/mux v1.8.0 // indirect
	github.com/gorilla/securecookie v1.1.1 // indirect
	github.com/gorilla/sessions v1.2.1 // indirect
	github.com/inconshreveable/mousetrap v1.0.0 // indirect
	github.com/jackc/chunkreader/v2 v2.0.1 // indirect
	github.com/jackc/pgconn v1.10.1 // indirect
	github.com/jackc/pgio v1.0.0 // indirect
	github.com/jackc/pgpassfile v1.0.0 // indirect
	github.com/jackc/pgproto3/v2 v2.1.1 // indirect
	github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
	github.com/jackc/pgtype v1.8.1 // indirect
	github.com/jackc/pgx/v4 v4.13.0 // indirect
	github.com/jmoiron/sqlx v1.3.4 // indirect
	github.com/joho/godotenv v1.4.0 // indirect
	github.com/karrick/godirwalk v1.16.1 // indirect
	github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
	github.com/luna-duclos/instrumentedsql v1.1.3 // indirect
	github.com/markbates/oncer v1.0.0 // indirect
	github.com/markbates/refresh v1.12.0 // indirect
	github.com/markbates/safe v1.0.1 // indirect
	github.com/markbates/sigtx v1.0.0 // indirect
	github.com/mattn/go-colorable v0.1.9 // indirect
	github.com/mattn/go-isatty v0.0.14 // indirect
	github.com/mattn/go-sqlite3 v1.14.9 // indirect
	github.com/microcosm-cc/bluemonday v1.0.16 // indirect
	github.com/mitchellh/go-homedir v1.1.0 // indirect
	github.com/monoculum/formam v3.5.5+incompatible // indirect
	github.com/nicksnyder/go-i18n v1.10.1 // indirect
	github.com/pelletier/go-toml v1.9.3 // indirect
	github.com/pkg/errors v0.9.1 // indirect
	github.com/pmezard/go-difflib v1.0.0 // indirect
	github.com/rogpeppe/go-internal v1.8.0 // indirect
	github.com/sergi/go-diff v1.2.0 // indirect
	github.com/sirupsen/logrus v1.8.1 // indirect
	github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
	github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
	github.com/spf13/cobra v1.2.1 // indirect
	github.com/spf13/pflag v1.0.5 // indirect
	github.com/stretchr/testify v1.7.0 // indirect
	golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
	golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
	golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
	golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e // indirect
	golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
	golang.org/x/text v0.3.6 // indirect
	gopkg.in/yaml.v2 v2.4.0 // indirect
	gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

buffalo new fails on Manjaro and MacOS

Description

buffalo new fails when building node-sass

Steps to Reproduce the Problem

  1. Install buffalo-git with yay
  2. Run buffalo new <project-name> --db-type=postgress in gopath

Expected Behavior

Make a new buffalo project.

Actual Behavior

Project was created but an error occurred:

make: *** [binding.target.mk:129: Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/mike/go/src/budget_timeline/node_modules/node-sass/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/mike/go/src/budget_timeline/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Linux 5.13.5-1-MANJARO
gyp ERR! command "/usr/bin/node" "/home/mike/go/src/budget_timeline/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/mike/go/src/budget_timeline/node_modules/node-sass
gyp ERR! node -v v16.5.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1

Full error:
buffalo_new_output.txt

Info

-> Go: Checking installation
✓ The `go` executable was found on your system at: /usr/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.16.6, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /home/mike/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /usr/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v16.5.0, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /usr/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 7.20.2, 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.11, meets the minimum requirements.

-> PostgreSQL: Checking installation
✓ The `postgres` executable was found on your system at: /usr/bin/postgres

-> PostgreSQL: Checking minimum version requirements
✓ Your version of PostgreSQL, 13.3.0, meets the minimum requirements.

-> 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 was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.36.0, meets the minimum requirements.

-> 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/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.16.26, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /home/mike
Root        /home/mike
GoPath      /home/mike/go
PackagePkg  mike
ActionsPkg  mike/actions
ModelsPkg   mike/models
GriftsPkg   mike/grifts
WithModules true
Name        mike
Bin         bin/mike
VCS         
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  false
WithGrifts  false
AsWeb       true
AsAPI       false
InApp       false
PackageJSON {map[]}

Need to run buffalo fix on newly generated applications

Description

look at the title

Steps to Reproduce the Problem

  1. Install buffalo cli
  2. generate a new project
  3. run buffalo dev
  4. Get this
buffalo: 2020/04/24 16:37:10 === Rebuild on: :start: ===
buffalo: 2020/04/24 16:37:10 === Running: go build -v -tags development -o tmp/default-build  (PID: 60948) ===
default/actions
# default/actions
actions/app.go:59:28: cannot use models.DB (type *"github.com/gobuffalo/pop/v5".Connection) as type *"github.com/gobuffalo/pop".Connection in argument to popmw.Transaction
buffalo: 2020/04/24 16:37:11 === Error! ===
buffalo: 2020/04/24 16:37:11 === exit status 2
default/actions
# default/actions
actions/app.go:59:28: cannot use models.DB (type *"github.com/gobuffalo/pop/v5".Connection) as type *"github.com/gobuffalo/pop".Connection in argument to popmw.Transaction
 ===

error.
5. Run buffalo fix to fix this

Expected Behavior

You shouldn't need buffalo fix

Actual Behavior

You needed to run it

Info

-> Go: Checking installation
✓ The `go` executable was found on your system at: /usr/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.14.1, meets the minimum requirements.

-> Go: Checking Package Management
⚠ You do not appear to be using Go Modules.

* Go Modules (Recommended) - https://gobuffalo.io/en/docs/gomods

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 (/home/linuxer/.local/bin:/home/linuxer/GolandProjects/bin:/home/linuxer/.npm-global/bin:/var/lib/snapd/snap/bin/:/home/linuxer/.local/bin:/home/linuxer/GolandProjects/bin:/home/linuxer/.npm-global/bin:/var/lib/snapd/snap/bin/:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin) does not contain /home/linuxer/GolandProjects/bin.

Without /home/linuxer/GolandProjects/bin in your `PATH` any Go executables can not be run globally.

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

-> Node: Checking installation
✓ The `node` executable was found on your system at: /usr/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v13.13.0, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /usr/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.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.21.1, meets the minimum requirements.

-> PostgreSQL: Checking installation
✓ The `postgres` executable was found on your system at: /usr/bin/postgres

-> PostgreSQL: Checking minimum version requirements
✓ Your version of PostgreSQL, 12.2.0, meets the minimum requirements.

-> 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 was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.31.1, meets the minimum requirements.

-> 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: /home/linuxer/GolandProjects/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/linuxer
Root        /home/linuxer
GoPath      /home/linuxer/GolandProjects
PackagePkg  linuxer
ActionsPkg  linuxer/actions
ModelsPkg   linuxer/models
GriftsPkg   linuxer/grifts
WithModules true
Name        linuxer
Bin         bin/linuxer
VCS         
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  false
WithGrifts  false
AsWeb       true
AsAPI       false
InApp       false
PackageJSON {map[]}


Buffalo fix issues

Description

There are several issues currently present in buffalo fix that I collect in this issue.

Steps to Reproduce the Problem

Please describe in painful detail what you did (so others can play along with you) to get to this point. This includes things like the exact command(s) you used, or the curl command you used, that sort of thing.

  1. Call buffalo fix on a pre 0.18.x gobuffalo code base
  2. Confirm that buffalo fix is allowed to do changes

Expected Behavior

All incompatibilities with pre 0.18.x code are updated to the current version of buffalo

Actual Behavior

The following short comings I have identified so far:

  • Fix is slow: When scanning for files buffalo fix seems to scan ALL files instead of just *.go files. With a large node_module folder fix becomes very slow.
  • Fix fails to read files in .git folder: Fix shouldn't even look at the .git folder
  • Code isn't updated: It seems code and unit tests in generated resources are not all updated when calling buffalo fix
  • buffalo-plugins.toml not updated: The link to the buffalo-pop plugin is still incorrect after running buffalo fix.
  • buffalo test doesn't install plugins any more: Calling buffalo test used to automatically install any missing plugins in 0.17.x. This doesn't seem to be the case any more in 0.18.x requiring the user to manually install necessary plugins.

Errors when running `buffalo dev` in default project

Steps to Reproduce the Problem

  1. buffalo new coke
  2. cd coke
  3. buffalo dev

Expected Behavior

I expected a local web server to run without errors.

Actual Behavior

The following messages appeared:

ERRO[0001] [PLUGIN] error loading plugin /Users/issactrotts/bin/buffalo-pop: exit status 2 
buffalo: 2021/09/29 13:12:33 === Rebuild on: :start: ===
buffalo: 2021/09/29 13:12:33 === Running: go build -v -tags development -o tmp/coke-build  (PID: 54442) ===
yarn run v1.22.4
$ webpack --watch

webpack is watching the files…

Live Reload listening on port 35729

actions/app.go:5:3: missing go.sum entry for module providing package github.com/gobuffalo/buffalo (imported by coke/actions); to add:
	go get coke/actions
actions/render.go:5:3: missing go.sum entry for module providing package github.com/gobuffalo/buffalo/render (imported by coke/actions); to add:
	go get coke/actions
/Users/issactrotts/pkg/mod/github.com/gobuffalo/buffalo-pop/[email protected]/pop/popmw/tx.go:11:2: missing go.sum entry for module providing package github.com/gobuffalo/events (imported by github.com/gobuffalo/buffalo-pop/v2/pop/popmw); to add:
	go get github.com/gobuffalo/buffalo-pop/v2/pop/[email protected]
actions/app.go:13:3: missing go.sum entry for module providing package github.com/gobuffalo/mw-csrf (imported by coke/actions); to add:
	go get coke/actions
actions/app.go:6:3: missing go.sum entry for module providing package github.com/gobuffalo/mw-forcessl (imported by coke/actions); to add:
	go get coke/actions
actions/app.go:14:3: missing go.sum entry for module providing package github.com/gobuffalo/mw-i18n (imported by coke/actions); to add:
	go get coke/actions
actions/app.go:7:3: missing go.sum entry for module providing package github.com/gobuffalo/mw-paramlogger (imported by coke/actions); to add:
	go get coke/actions
actions/app.go:8:3: missing go.sum entry for module providing package github.com/unrolled/secure (imported by coke/actions); to add:
	go get coke/actions
buffalo: 2021/09/29 13:12:34 === Error! ===
buffalo: 2021/09/29 13:12:34 === exit status 1
actions/app.go:5:3: missing go.sum entry for module providing package github.com/gobuffalo/buffalo (imported by coke/actions); to add:
	go get coke/actions
actions/render.go:5:3: missing go.sum entry for module providing package github.com/gobuffalo/buffalo/render (imported by coke/actions); to add:
	go get coke/actions
/Users/issactrotts/pkg/mod/github.com/gobuffalo/buffalo-pop/[email protected]/pop/popmw/tx.go:11:2: missing go.sum entry for module providing package github.com/gobuffalo/events (imported by github.com/gobuffalo/buffalo-pop/v2/pop/popmw); to add:
	go get github.com/gobuffalo/buffalo-pop/v2/pop/[email protected]
actions/app.go:13:3: missing go.sum entry for module providing package github.com/gobuffalo/mw-csrf (imported by coke/actions); to add:
	go get coke/actions
actions/app.go:6:3: missing go.sum entry for module providing package github.com/gobuffalo/mw-forcessl (imported by coke/actions); to add:
	go get coke/actions
actions/app.go:14:3: missing go.sum entry for module providing package github.com/gobuffalo/mw-i18n (imported by coke/actions); to add:
	go get coke/actions
actions/app.go:7:3: missing go.sum entry for module providing package github.com/gobuffalo/mw-paramlogger (imported by coke/actions); to add:
	go get coke/actions
actions/app.go:8:3: missing go.sum entry for module providing package github.com/unrolled/secure (imported by coke/actions); to add:
	go get coke/actions
 ===
Hash: b39d3c71e6d206a140aa
Version: webpack 4.42.1
Time: 973ms
Built at: 09/29/2021 1:12:35 PM
                              Asset       Size       Chunks                         Chunk Names
application.b39d3c71e6d206a140aa.js   1.81 MiB  application  [emitted] [immutable]  application
                 images/favicon.ico   1.12 KiB               [emitted]              
                    images/logo.svg   64.4 KiB               [emitted]              
                      manifest.json  147 bytes               [emitted]              
Entrypoint application = application.b39d3c71e6d206a140aa.js
[0] multi ./node_modules/jquery-ujs/src/rails.js ./assets/css/application.scss ./assets/js/application.js 52 bytes {application} [built]
[./assets/css/application.scss] 2.24 KiB {application} [built] [failed] [1 error]
[./assets/js/application.js] 179 bytes {application} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {application} [built]
    + 12 hidden modules

ERROR in ./assets/css/application.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.13.1
    at module.exports (/private/tmp/coke/node_modules/node-sass/lib/binding.js:13:13)
    at Object.<anonymous> (/private/tmp/coke/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (/private/tmp/coke/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (/private/tmp/coke/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at getDefaultSassImplementation (/private/tmp/coke/node_modules/sass-loader/dist/getDefaultSassImplementation.js:24:10)
    at getSassImplementation (/private/tmp/coke/node_modules/sass-loader/dist/getSassImplementation.js:19:72)
    at Object.loader (/private/tmp/coke/node_modules/sass-loader/dist/index.js:40:61)
    at /private/tmp/coke/node_modules/webpack/lib/NormalModule.js:316:20
    at /private/tmp/coke/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /private/tmp/coke/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at runSyncOrAsync (/private/tmp/coke/node_modules/loader-runner/lib/LoaderRunner.js:143:3)
    at iterateNormalLoaders (/private/tmp/coke/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
    at Array.<anonymous> (/private/tmp/coke/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/private/tmp/coke/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /private/tmp/coke/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
    at /private/tmp/coke/node_modules/graceful-fs/graceful-fs.js:123:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
 @ multi ./node_modules/jquery-ujs/src/rails.js ./assets/css/application.scss ./assets/js/application.js application[1]
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--4-1!node_modules/postcss-loader/src/index.js??ref--4-2!node_modules/sass-loader/dist/cjs.js??ref--4-3!assets/css/application.scss:
    Entrypoint mini-css-extract-plugin = *
    [./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./assets/css/application.scss] ./node_modules/css-loader/dist/cjs.js??ref--4-1!./node_modules/postcss-loader/src??ref--4-2!./node_modules/sass-loader/dist/cjs.js??ref--4-3!./assets/css/application.scss 1.26 KiB {mini-css-extract-plugin} [built] [failed] [1 error]
    
    ERROR in ./assets/css/application.scss (./node_modules/css-loader/dist/cjs.js??ref--4-1!./node_modules/postcss-loader/src??ref--4-2!./node_modules/sass-loader/dist/cjs.js??ref--4-3!./assets/css/application.scss)
    Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
    Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (93)
    For more information on which environments are supported please see:
    https://github.com/sass/node-sass/releases/tag/v4.13.1
        at module.exports (/private/tmp/coke/node_modules/node-sass/lib/binding.js:13:13)
        at Object.<anonymous> (/private/tmp/coke/node_modules/node-sass/lib/index.js:14:35)
        at Module._compile (/private/tmp/coke/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
        at Module.load (node:internal/modules/cjs/loader:981:32)
        at Function.Module._load (node:internal/modules/cjs/loader:822:12)
        at Module.require (node:internal/modules/cjs/loader:1005:19)
        at require (/private/tmp/coke/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
        at getDefaultSassImplementation (/private/tmp/coke/node_modules/sass-loader/dist/getDefaultSassImplementation.js:24:10)
        at getSassImplementation (/private/tmp/coke/node_modules/sass-loader/dist/getSassImplementation.js:19:72)
        at Object.loader (/private/tmp/coke/node_modules/sass-loader/dist/index.js:40:61)

Also, visiting localhost:3000 in Chrome and Safari showed "This site can’t be reached" in Chrome and "Safari Can't Connect to the Server."

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

ERRO[0000] [PLUGIN] error loading plugin /Users/issactrotts/bin/buffalo-pop: exit status 2 
-> Go: Checking installation
✓ The `go` executable was found on your system at: /usr/local/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.17, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /Users/issactrotts/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, v16.10.0, 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, 7.24.0, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /usr/local/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.4, meets the minimum requirements.

-> PostgreSQL: Checking installation
✓ The `postgres` executable was found on your system at: /usr/local/opt/postgresql@12/bin/postgres

-> PostgreSQL: Checking minimum version requirements
✓ Your version of PostgreSQL, 12.8.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: /Users/issactrotts/Library/Android/sdk/platform-tools/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.28.0, meets the minimum requirements.

-> Cockroach: Checking installation
✓ The `cockroach` executable was found on your system at: /usr/local/bin/cockroach

-> Cockroach: Checking minimum version requirements
✓ Your version of Cockroach, 21.1.9, meets the minimum requirements.

-> 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.17.2, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /tmp/coke
Root        /tmp/coke
GoPath      /Users/issactrotts
PackagePkg  coke
ActionsPkg  coke/actions
ModelsPkg   coke/models
GriftsPkg   coke/grifts
WithModules true
Name        coke
Bin         bin/coke
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 = "coke"
bin = "bin/coke"
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/v2"

-> Buffalo: go.mod
module coke

go 1.17

require (
	github.com/Masterminds/semver/v3 v3.0.3 // indirect
	github.com/fatih/color v1.9.0 // indirect
	github.com/fatih/structs v1.1.0 // indirect
	github.com/go-sql-driver/mysql v1.5.0 // indirect
	github.com/gobuffalo/attrs v1.0.0 // indirect
	github.com/gobuffalo/buffalo-pop/v2 v2.3.0 // indirect
	github.com/gobuffalo/envy v1.9.0 // indirect
	github.com/gobuffalo/fizz v1.10.0 // indirect
	github.com/gobuffalo/flect v0.2.1 // indirect
	github.com/gobuffalo/genny/v2 v2.0.5 // indirect
	github.com/gobuffalo/github_flavored_markdown v1.1.0 // indirect
	github.com/gobuffalo/helpers v0.6.1 // indirect
	github.com/gobuffalo/logger v1.0.3 // indirect
	github.com/gobuffalo/nulls v0.2.0 // indirect
	github.com/gobuffalo/packd v1.0.0 // indirect
	github.com/gobuffalo/packr/v2 v2.8.0 // indirect
	github.com/gobuffalo/plush/v4 v4.0.0 // indirect
	github.com/gobuffalo/pop/v5 v5.3.0 // indirect
	github.com/gobuffalo/tags/v3 v3.1.0 // indirect
	github.com/gobuffalo/validate/v3 v3.1.0 // indirect
	github.com/gofrs/uuid v3.2.0+incompatible // indirect
	github.com/inconshreveable/mousetrap v1.0.0 // indirect
	github.com/jackc/chunkreader/v2 v2.0.1 // indirect
	github.com/jackc/pgconn v1.6.0 // indirect
	github.com/jackc/pgio v1.0.0 // indirect
	github.com/jackc/pgpassfile v1.0.0 // indirect
	github.com/jackc/pgproto3/v2 v2.0.2 // indirect
	github.com/jackc/pgservicefile v0.0.0-20200307190119-3430c5407db8 // indirect
	github.com/jackc/pgtype v1.3.0 // indirect
	github.com/jackc/pgx/v4 v4.6.0 // indirect
	github.com/jmoiron/sqlx v1.2.0 // indirect
	github.com/joho/godotenv v1.3.0 // indirect
	github.com/karrick/godirwalk v1.16.1 // indirect
	github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
	github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
	github.com/luna-duclos/instrumentedsql v1.1.3 // indirect
	github.com/markbates/errx v1.1.0 // indirect
	github.com/markbates/oncer v1.0.0 // indirect
	github.com/markbates/safe v1.0.1 // indirect
	github.com/mattn/go-colorable v0.1.4 // indirect
	github.com/mattn/go-isatty v0.0.12 // indirect
	github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
	github.com/microcosm-cc/bluemonday v1.0.2 // indirect
	github.com/pkg/errors v0.9.1 // indirect
	github.com/rogpeppe/go-internal v1.5.2 // indirect
	github.com/sergi/go-diff v1.1.0 // indirect
	github.com/sirupsen/logrus v1.4.2 // indirect
	github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
	github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
	github.com/spf13/cobra v0.0.6 // indirect
	github.com/spf13/pflag v1.0.5 // indirect
	golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59 // indirect
	golang.org/x/mod v0.2.0 // indirect
	golang.org/x/net v0.0.0-20200226121028-0de0cce0169b // indirect
	golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
	golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5 // indirect
	golang.org/x/text v0.3.2 // indirect
	golang.org/x/tools v0.0.0-20200308013534-11ec41452d41 // indirect
	golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect
	gopkg.in/yaml.v2 v2.2.8 // indirect
)

buffalo >= 0.16.26 breaks when vendoring is used

Description

gobuffalo/buffalo#2119 introduced go get -d during buffalo build. aa.go, created during buffalo build contains flect (which isn't a direct import in the application). Because of go get -d this leads to the modified go.mod with explicit dependency and to a mismatch with vendor/modules.txt with following error message:

go: inconsistent vendoring in /home/vagrant/artem:
	github.com/gobuffalo/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

	To ignore the vendor directory, use -mod=readonly or -mod=mod.
	To sync the vendor directory, run:
		go mod vendor

If you add flect manually to the go.mod, it will vanish by the next go mod tidy.

Current workaround is to add _ "github.com/gobuffalo/flect" to the import in main.go (or somewhere else) and run go mod vendor

Steps to Reproduce the Problem

  1. get buffalo cmd 0.17.1
  2. create new application
  3. build it buffalo build -v - it works
  4. enable vendoring with go mod vendor
  5. build it again with buffalo build -v - it breaks
# setup buffalo cmd 0.17.1/0.17.2
 $ git clone https://github.com/gobuffalo/cli.git 
 $ cd cli 
 $ git checkout v0.17.1
 $ go mod tidy
 $ cd cmd/buffalo/ 
 $ go build -tags sqlite 
 $ mv buffalo /usr/local/go/bin/

# create new application
$ buffalo new testapp
...
$ cd testapp
$ buffalo build -v   # it works!
....

# enable vendoring and build again
$ go mod vendor
$ buffalo build -v
...
go: inconsistent vendoring in /home/vagrant/testapp:
	github.com/gobuffalo/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

	To ignore the vendor directory, use -mod=readonly or -mod=mod.
	To sync the vendor directory, run:
		go mod vendor
...

I could reproduce it on buffalo cmd >= 0.16.26 and on the latest 0.17.1

Expected Behavior

buffalo should support vendoring

Actual Behavior

buffalo doesn't build when vendoring is enabled

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

-> 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.16.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/vagrant/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v14.17.5, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.14, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.11, 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 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: /bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.7.17, meets the minimum requirements.

-> 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/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✘ Invalid Semantic Version

-> Buffalo: Application Details
Pwd         /home/vagrant/testapp
Root        /home/vagrant/testapp
GoPath      /home/vagrant/go
PackagePkg  testapp
ActionsPkg  testapp/actions
ModelsPkg   testapp/models
GriftsPkg   testapp/grifts
WithModules true
Name        testapp
Bin         bin/testapp
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 = "testapp"
bin = "bin/testapp"
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/v2"

-> Buffalo: go.mod
module testapp

go 1.16

require (
	github.com/gobuffalo/buffalo v0.17.2
	github.com/gobuffalo/buffalo-pop/v2 v2.3.0
	github.com/gobuffalo/envy v1.9.0
	github.com/gobuffalo/mw-csrf v1.0.0
	github.com/gobuffalo/mw-forcessl v0.0.0-20200131175327-94b2bd771862
	github.com/gobuffalo/mw-i18n v1.1.0
	github.com/gobuffalo/mw-paramlogger v1.0.0
	github.com/gobuffalo/packr/v2 v2.8.1
	github.com/gobuffalo/pop/v5 v5.3.4
	github.com/gobuffalo/suite v2.8.2+incompatible
	github.com/markbates/grift v1.5.0
	github.com/unrolled/secure v1.0.9
)

buffalo build fails in strange condition (v0.18.0)

Description

buffalo build works fine for the first time, but after that, it fails with the following error message:

$ buffalo build -v -o zzz
DEBU[2021-11-29T00:22:20+09:00] Step: dd26fa27
DEBU[2021-11-29T00:22:20+09:00] Chdir: /home/sio4/git/bt/app
DEBU[2021-11-29T00:22:20+09:00] Exec: go mod tidy
2021/11/29 00:22:20 build:clean fork/exec /opt/google/go/bin/go: too many open files
$ 

If I manually remove bin/app, it works fine again. However, the issue is not a previously built app. If I copied e.g. buffalo binary into the app root, buffalo build does not work. After some try, I found the exact condition:

  • any C binary such as bash, wireshark doesn't affect
  • if I drop any binary built with Go within the app directory with a file name after node_modules, e.g. node_moduless, it does not affect.
  • if I drop the same binary within the app directory with a filename before node_modules, e.g. node_module, buffalo build will not work.

Steps to Reproduce the Problem

  1. go install -v -tags sqlite github.com/gobuffalo/cli/cmd/[email protected]
  2. buffalo new app
  3. cd app
  4. buffalo build -o zzz
  5. buffalo build
  6. buffalo build

Info

-> Go: Checking installation
✓ The `go` executable was found on your system at: /opt/google/go/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.16.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/sio4/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.6/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v14.17.6, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.6/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.15, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.6/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.11, 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, 8.0.27, meets the minimum requirements.

-> SQLite3: Checking installation
✓ The `sqlite3` executable was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.31.1, meets the minimum requirements.

-> 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: /home/sio4/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.18.0, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /home/sio4/git/bt/app
Root        /home/sio4/git/bt/app
GoPath      /home/sio4/go
PackagePkg  app
ActionsPkg  app/actions
ModelsPkg   app/models
GriftsPkg   app/grifts
WithModules true
Name        app
Bin         bin/app
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 --mode production --progress dev:webpack --watch]}

-> Buffalo: config/buffalo-app.toml
name = "app"
bin = "bin/app"
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/v3@latest"

-> Buffalo: go.mod
module app

go 1.16

require (
	github.com/gobuffalo/buffalo v0.18.0
	github.com/gobuffalo/buffalo-pop/v3 v3.0.1
	github.com/gobuffalo/envy v1.10.1
	github.com/gobuffalo/mw-csrf v1.0.0
	github.com/gobuffalo/mw-forcessl v0.0.0-20200131175327-94b2bd771862
	github.com/gobuffalo/mw-i18n/v2 v2.0.1
	github.com/gobuffalo/mw-paramlogger v1.0.0
	github.com/gobuffalo/pop/v6 v6.0.0
	github.com/gobuffalo/suite/v4 v4.0.2
	github.com/markbates/grift v1.5.0
	github.com/unrolled/secure v1.0.9
)

Console replacement

I noticed the console was scheduled to be removed for the next version, because (essentially) gore wasn't a "real" REPL.

has neugram.io been considered as a possible replacement ?
(it has an API, and even a Jupyter front-end :P)

buffalo new fails on M1 MacOS

Description

Running the buffalo new command does not work on M1 Mac.

Steps to Reproduce the Problem

  1. Install latest buffalo cli on an M1 Mac
  2. run buffalo new app -f

Expected Behavior

app should get initialized without any issue.

Actual Behavior

Installation process fails with:

# github.com/gobuffalo/buffalo-pop/v2
/usr/local/go/pkg/tool/darwin_arm64/link: /usr/local/go/pkg/tool/darwin_arm64/link: combining dwarf failed: unknown load command 0x80000034 (2147483700)

Info

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.16.6, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /Users/paganotoni/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, v15.7.0, 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, 7.4.3, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /Users/paganotoni/.yarn/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.5, 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, 13.2.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: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.36.0, meets the minimum requirements.

-> 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: /Users/paganotoni/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.16.27, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /Users/paganotoni/code
Root        /Users/paganotoni/code
GoPath      /Users/paganotoni/go
PackagePkg  code
ActionsPkg  code/actions
ModelsPkg   code/models
GriftsPkg   code/grifts
WithModules true
Name        code
Bin         bin/code
VCS         
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  false
WithGrifts  false
AsWeb       true
AsAPI       false
InApp       false
PackageJSON {map[]}

Switching to Bootstrap 5 without JQuery

With the introduction of Bootstrap 5 that drop support for JQuery, I'm trying to update a Buffalo project to only work with Vanilla JS. Is there anyone trying to do the same?

I think we must rewrite rails.js that depend on JQueryUI, unless there is already an updated version. Another thing I'd like to do is introduce TypeScript support for programming the assets/js/application.js file.

The question is: to do all this is it necessary only to update the webpack.config.js and package.js files? Does anyone already have some updated files?

If I get a good result I will send a PR as a proposal :)

cli generates `Dockerfile` contains a wrong buffalo version

Description

What is the policy of versioning? Do we keep the versions of "buffalo" and "cli" match with each other? I think that could be good to prevent confusion on the user side but it could be hard to keep them as the same especially when one of them has a relatively higher development speed.

As of today, the version of buffalo is 0.17.3 and the version of cli is 0.17.5. The cli generates Dockerfile as if we have buffalo v0.17.5, also buffalo version only prints cli version.

FROM gobuffalo/buffalo:v0.17.5 as builder
<...>

Maybe we need to add something like BuffaloVersion or CLIVersion. What do you think?

// Version is the current version of the buffalo binary
var Version = "v0.17.5"
var BuffaloVersion = "v0.17.3"

Steps to Reproduce the Problem

  1. install newest version of buffalo cli which is 0.17.5
  2. run buffalo new app
  3. check Dockerfile

Expected Behavior

Generated usable Dockerfile.

Actual Behavior

Generated Dockerfile with wrong version (since buffalo version is still 0.17.3)

Info

-> Go: Checking installation
✓ The `go` executable was found on your system at: /opt/google/go/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.16.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/sio4/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.6/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v14.17.6, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.6/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.15, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.6/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.11, 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, 8.0.26, meets the minimum requirements.

-> SQLite3: Checking installation
✓ The `sqlite3` executable was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.31.1, meets the minimum requirements.

-> 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: /home/sio4/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.17.5, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /home/sio4/git/hyeoncheon/coke
Root        /home/sio4/git/hyeoncheon/coke
GoPath      /home/sio4/go
PackagePkg  coke
ActionsPkg  coke/actions
ModelsPkg   coke/models
GriftsPkg   coke/grifts
WithModules true
Name        coke
Bin         bin/coke
VCS         git
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack true
WithNodeJs  true
WithYarn    true
WithDocker  true
WithGrifts  true
AsWeb       true
AsAPI       false
InApp       true
PackageJSON {map[build:webpack --mode production --progress dev:webpack --watch]}

-> Buffalo: config/buffalo-app.toml
name = "coke"
bin = "bin/coke"
vcs = "git"
with_pop = false
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

-> Buffalo: go.mod
module coke

go 1.16

require (
	github.com/gobuffalo/buffalo v0.17.3
	github.com/gobuffalo/envy v1.9.0
	github.com/gobuffalo/mw-csrf v1.0.0
	github.com/gobuffalo/mw-forcessl v0.0.0-20200131175327-94b2bd771862
	github.com/gobuffalo/mw-i18n v1.1.0
	github.com/gobuffalo/mw-paramlogger v1.0.0
	github.com/gobuffalo/packr/v2 v2.8.1
	github.com/gobuffalo/suite v2.8.2+incompatible
	github.com/unrolled/secure v1.0.9
)

go install fails on 0.17.6

Description

when installing latest version, installation fails

Steps to Reproduce the Problem

go install github.com/gobuffalo/cli/cmd/buffalo@latest

Expected Behavior

no errors

Actual Behavior

> go install github.com/gobuffalo/cli/cmd/buffalo@latest
go: downloading github.com/gobuffalo/cli v0.17.6
go install: github.com/gobuffalo/cli/cmd/buffalo@latest (in github.com/gobuffalo/[email protected]):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

-> Go: Checking installation
✓ The `go` executable was found on your system at: /Users/xxx/homebrew/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.15, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /Users/xxx/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /Users/xxx/homebrew/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v16.11.1, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /Users/xxx/homebrew/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 8.0.0, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /Users/xxx/.yarn/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.4, 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 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
✓ Your version of SQLite3, 3.28.0, meets the minimum requirements.

-> 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: /Users/xxx/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.16.18, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /Users/xxx
Root        /Users/xxx
GoPath      /Users/xxx/go
PackagePkg  xxx
ActionsPkg  xxx/actions
ModelsPkg   xxx/models
GriftsPkg   xxx/grifts
WithModules true
Name        xxx
Bin         bin/xxx
VCS
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  true
WithYarn    true
WithDocker  false
WithGrifts  false
AsWeb       true
AsAPI       false
InApp       false
PackageJSON {map[]}

[Question] Why I get "unable to find pop config file" running a builded executable?

I configured a clean dev envirorment to work with buffalo and go modules. (Tested on mac dev envirorment with Catalina 10.15.1 and on linux dev envirorment with Ubuntu 18.04)
To do so I installed:

  • Go (1.13.5)
  • Buffalo (0.15.3)

and configured _.zshrc (or .bash_profile) with:

export GO111MODULE=on
export PATH=$PATH:$HOME/GO/bin

After that i created a new project running "buffalo new ..."

Running "buffalo dev" works. But when i build an executible with "buffalo build" and run it outside the project directory i get "unable to find pop config file"

The problem is that i cannot run anymore a buffalo project on the server.

Before using modules was simply runing the command GOOS=linux GOARCH=amd64 buffalo build copy and install the executible on the server works.

I miss some extra configuration?

[Bug] "Generate resource" ignores the "--use-model" flag

Description

Since I'm new to Buffalo, I'd like to get familiar with its CLI. While experimenting with the buffalo generate resource command I noticed the following issue regarding the --use-model flag. The command ignores the flag and overwrites the existing model with a new one.

Steps to Reproduce the Problem

  1. Create a new project using buffalo new name --api
  2. Generate a model using pop buffalo pop generate model user name:string
  3. Generate a resource using that model buffalo generate resource user --use-model user --skip-migration

Expected Behavior

Step 2 produced a model named user.go with the following struct:

type User struct {
	ID        uuid.UUID `json:"id" db:"id"`
	Name      string    `json:"name" db:"name"`
	CreatedAt time.Time `json:"created_at" db:"created_at"`
	UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}

The struct should remain the same after executing step 3.

Actual Behavior

After executing step 3, the user.go model got overwritten. It now looks like:

type User struct {
	ID        uuid.UUID `json:"id" db:"id"`
	CreatedAt time.Time `json:"created_at" db:"created_at"`
	UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}

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.14.6, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /Users/lex/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /Users/lex/.nvm/versions/node/v10.16.2/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v10.16.2, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /Users/lex/.nvm/versions/node/v10.16.2/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.5, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /Users/lex/.nvm/versions/node/v10.16.2/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.4, meets the minimum requirements.

-> PostgreSQL: Checking installation
✓ The `postgres` executable was found on your system at: /Applications/Postgres.app/Contents/Versions/11/bin/postgres

-> PostgreSQL: Checking minimum version requirements
✓ Your version of PostgreSQL, 11.4.0, meets the minimum requirements.

-> MySQL: Checking installation
✓ The `mysql` executable was found on your system at: /usr/local/mysql/bin/mysql

-> MySQL: Checking minimum version requirements
✓ Your version of MySQL, 8.0.15, meets the minimum requirements.

-> SQLite3: Checking installation
✓ The `sqlite3` executable was found on your system at: /Users/lex/anaconda3/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.26.0, meets the minimum requirements.

-> 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.16.13, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /Users/lex/Documents/Development/Go/privateprojects/name
Root        /Users/lex/Documents/Development/Go/privateprojects/name
GoPath      /Users/lex/go
PackagePkg  name
ActionsPkg  name/actions
ModelsPkg   name/models
GriftsPkg   name/grifts
WithModules true
Name        name
Bin         bin/name
VCS         git
WithPop     true
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  true
WithGrifts  true
AsWeb       false
AsAPI       true
InApp       true
PackageJSON {map[]}

-> Buffalo: config/buffalo-app.toml
name = "name"
bin = "bin/name"
vcs = "git"
with_pop = true
with_sqlite = false
with_dep = false
with_webpack = false
with_nodejs = false
with_yarn = false
with_docker = true
with_grifts = true
as_web = false
as_api = true

-> Buffalo: config/buffalo-plugins.toml
[[plugin]]
  binary = "buffalo-pop"
  go_get = "github.com/gobuffalo/buffalo-pop/v2"

-> Buffalo: go.mod
module name

go 1.13

require (
	github.com/gobuffalo/buffalo v0.15.5
	github.com/gobuffalo/buffalo-pop/v2 v2.0.6
	github.com/gobuffalo/envy v1.9.0
	github.com/gobuffalo/mw-contenttype v0.0.0-20190129203934-2554e742333b
	github.com/gobuffalo/mw-forcessl v0.0.0-20180802152810-73921ae7a130
	github.com/gobuffalo/mw-paramlogger v0.0.0-20190129202837-395da1998525
	github.com/gobuffalo/packr/v2 v2.8.0
	github.com/gobuffalo/pop/v5 v5.1.1
	github.com/gobuffalo/suite v2.8.2+incompatible
	github.com/gobuffalo/validate/v3 v3.1.0
	github.com/gobuffalo/x v0.0.0-20190224155809-6bb134105960
	github.com/gofrs/uuid v3.2.0+incompatible
	github.com/markbates/grift v1.5.0
	github.com/rs/cors v1.7.0
	github.com/unrolled/secure v0.0.0-20190103195806-76e6d4e9b90c
)

Use Tab to replace 2 spaces in template go files

Shall we use Tab to replace 2 spaces in template go files under https://github.com/gobuffalo/cli/tree/9d0ba115e28c8a7eeb05691de705fddddc3c416e/internal/genny/resource/templates?
e.g. https://github.com/gobuffalo/cli/blob/9d0ba115e28c8a7eeb05691de705fddddc3c416e/internal/genny/resource/templates/use_model/actions/resource-name.go.tmpl .

Then we can configure Go IDE to keep to expand Tab. Currently we have to modify the generated go files and save it in IDE to format the style.

Buffalo new -> invalid module path

Description

When trying to create a new app, it exits with an error during the go mod init stage:

DEBU[2021-03-15T08:46:57+01:00] Exec: go mod init ../../gotest/coke
go: invalid module path "../../gotest/coke": is a local import path

The Directory that I created is not in the $GOPATH, since I thought that it isn't needed anymore due to modules - is this not the case?

Steps to Reproduce the Problem

  1. create a directory somewhere on the filesystem
  2. buffalo new coke

Expected Behavior

First time trying out buffalo - I guess a new proect should be scaffoled.

Actual Behavior

Error: invalid module path (see description)

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.16.2, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /home/user/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /home/user/.nvm/versions/node/v15.3.0/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v15.3.0, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /home/mfluor/.nvm/versions/node/v15.3.0/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 7.0.14, meets the minimum requirements.

-> Yarn: Checking installation
✘ The `yarnpkg` executable could not be found on your system.
For help setting up your Yarn environment please follow the instructions for you platform at:

https://yarnpkg.com/en/docs/install

-> 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, 8.0.23, meets the minimum requirements.

-> SQLite3: Checking installation
✓ The `sqlite3` executable was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.31.1, meets the minimum requirements.

-> 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: /home/user/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.16.20, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /home/user/gotest
Root        /home/user/gotest
GoPath      /home/user/go
PackagePkg  ../../gotest/
ActionsPkg  ../../gotest/actions
ModelsPkg   ../../gotest/models
GriftsPkg   ../../gotest/grifts
WithModules true
Name        testapp
Bin         bin/testapp
VCS
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  false
WithGrifts  false
AsWeb       true
AsAPI       false
InApp       false
PackageJSON {map[]}

"unable to find pop config file" error only appears in pre-built binaries of gobuffalo cli

Description

I ran into an issue that has been reported before but apparently was never fixed. Whenever I build my application with buffalo build and try to execute the binary it exits with the error message "unable to find pop config file" unless there is a database.yml in the same folder as the binary. Here are links to other issues reporting this problem:

gobuffalo/buffalo#1682
#19

Interestingly I never ran into the issue when I used the provided multi-stage Dockerfile to build my project, although the generated image does not contain a database.yml file.

The issue seems to be the pre-built binaries released on github. When I install the buffalo cli from source the problem does not happen. This also explains why it works with the multi-stage Dockerfile; the buffalo cli there is installed using go install instead of downloading it from the github releases.

Steps to Reproduce the Problem

  1. Install buffalo cli from the github releases: https://github.com/gobuffalo/cli/releases/tag/v0.17.5 (I've been testing with the linux x86_64 build)
  2. Generate a new project with buffalo new coke
  3. Build the project with buffalo build -o bin/app
  4. If you now move the generated binary from bin to any folder outside the working space and start it it will exit with the error unable to find pop config file
  5. Install the gobuffalo cli with go install github.com/gobuffalo/cli/cmd/[email protected]
  6. Build the project with buffalo build -o bin/app
  7. This binary will work in any folder you place it and will not produce the unable to find pop config file error that the other binary has.

Expected Behavior

Both the pre-built binary on github as well as the local binary generated with go install should behave the same.

Actual Behavior

The pre-built binary seems to have an issue with how it packs files in the binary using packr.

Info

I tested the pre-built binary with version v0.17.5 (form https://github.com/gobuffalo/cli/releases/tag/v0.17.5) and the gobuffalo cli installed with go install github.com/gobuffalo/cli/cmd/[email protected].

Resource generator should generate default tests

Right now it generates tests that look like this:

func (as *ActionSuite) Test_BooksResource_List() {
	as.Fail("Not Implemented!")
}
...

It would be fantastic if these tests were actually implemented when generating a new resource.

This ticket is not for the faint of heart. :)

buffalo build is not always packing migration files

Description

As of yesterday (2020-04-02), I've started experiencing an issue with buffalo builds sometimes not including my migration files. I've never experienced this prior to yesterday.

Steps to Reproduce the Problem

Here are some console commands that illustrate the problem:

$ buffalo version
INFO[0000] Buffalo version is: v0.14.10
$ for i in 1 2 3 4 5; do buffalo build -o a.out.$i; done
$ ls -l a.out.*
-rwxr-xr-x 1 corey staff 22899396 Apr  3 15:15 a.out.1
-rwxr-xr-x 1 corey staff 22920068 Apr  3 15:15 a.out.2
-rwxr-xr-x 1 corey staff 22899396 Apr  3 15:15 a.out.3
-rwxr-xr-x 1 corey staff 22920068 Apr  3 15:15 a.out.4
-rwxr-xr-x 1 corey staff 22899396 Apr  3 15:15 a.out.5
$ grep -l 20200330203802 a.out.*
a.out.2
a.out.4

You can see above that the file sizes of the binary differ from build to build. The larger files appear to have the packed migration files while the others do not. The grep command is searching for a known migration timestamp and sure enough only appears in the larger binaries.

Expected Behavior

Binaries built with buffalo build should consistently include the packed migration files.

Actual Behavior

Some binaries do not include the packed migration files.

Info

-> Go: Checking installation
✓ The `go` executable was found on your system at: /usr/local/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.13.4, meets the minimum requirements.

-> Go: Checking GOPATH
✓ You are using Go Modules, so no need to worry about the GOPATH.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /Users/corey/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /Users/corey/.nvm/versions/node/v12.16.1/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: /Users/corey/.nvm/versions/node/v12.16.1/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/local/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.13.0, meets the minimum requirements.

-> PostgreSQL: Checking installation
✓ The `postgres` executable was found on your system at: /usr/local/bin/postgres

-> PostgreSQL: Checking minimum version requirements
✘ signal: abort trap (core dumped)

-> 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: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.24.0, meets the minimum requirements.

-> 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: Checking installation
✓ The `buffalo` executable was found on your system at: /Users/corey/go/bin/buffalo

-> Buffalo: Checking minimum version requirements
✓ Your version of Buffalo, v0.14.10, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /Users/corey/code/scribe/projects/dataserver
Root        /Users/corey/code/scribe/projects/dataserver
GoPath      /Users/corey/go
PackagePkg  github.com/greenkeytech/scribe/projects/dataserver
ActionsPkg  github.com/greenkeytech/scribe/projects/dataserver/actions
ModelsPkg   github.com/greenkeytech/scribe/projects/dataserver/models
GriftsPkg   github.com/greenkeytech/scribe/projects/dataserver/grifts
WithModules true
Name        dataserver
Bin         bin/dataserver
VCS         git
WithPop     true
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  true
WithGrifts  true
AsWeb       false
AsAPI       true
InApp       true
PackageJSON {map[]}

-> Buffalo: config/buffalo-app.toml
name = "dataserver"
bin = "bin/dataserver"
vcs = "git"
with_pop = true
with_sqlite = false
with_dep = false
with_webpack = false
with_nodejs = false
with_yarn = false
with_docker = true
with_grifts = true
as_web = false
as_api = true

-> Buffalo: config/buffalo-plugins.toml
[[plugin]]
  binary = "buffalo-plugins"
  go_get = "github.com/gobuffalo/buffalo-plugins"

[[plugin]]
  binary = "buffalo-pop"
  go_get = "github.com/gobuffalo/buffalo-pop"

-> Buffalo: go.mod
module github.com/greenkeytech/scribe/projects/dataserver

go 1.12

require (
	github.com/brianvoe/gofakeit v3.17.0+incompatible
	github.com/gobuffalo/buffalo v0.14.10
	github.com/gobuffalo/buffalo-pop v1.22.0
	github.com/gobuffalo/envy v1.7.0
	github.com/gobuffalo/logger v1.0.1
	github.com/gobuffalo/mw-contenttype v0.0.0-20190224202710-36c73cc938f3
	github.com/gobuffalo/mw-paramlogger v0.0.0-20190224201358-0d45762ab655
	github.com/gobuffalo/nulls v0.1.0
	github.com/gobuffalo/packr/v2 v2.6.0
	github.com/gobuffalo/pop v4.12.0+incompatible
	github.com/gobuffalo/suite v2.6.2+incompatible
	github.com/gobuffalo/uuid v2.0.5+incompatible
	github.com/gobuffalo/validate v2.0.3+incompatible
	github.com/gobuffalo/x v0.0.0-20190224155809-6bb134105960
	github.com/gofrs/uuid v3.2.0+incompatible
	github.com/jinzhu/now v1.0.1
	github.com/markbates/grift v1.1.0
	github.com/pkg/errors v0.8.1
	github.com/rogpeppe/go-internal v1.4.0 // indirect
	github.com/rs/cors v1.6.0
	github.com/sirupsen/logrus v1.4.2
	github.com/stretchr/testify v1.4.0
	github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
	github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
	github.com/xeipuuv/gojsonschema v1.1.0
	golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392 // indirect
	golang.org/x/net v0.0.0-20190923162816-aa69164e4478 // indirect
	golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
)

replace (
	git.apache.org/thrift.git => github.com/apache/thrift v0.12.0
)

Buffalo new does not support Yarn 2+ (berry)

Description

Running buffalo new on a system with Yarn version 2+ (berry) fails with:

DEBU[2022-01-02T11:43:45-05:00] Exec: yarnpkg install --no-progress --save
DEBU[2022-01-02T11:43:45-05:00] Unknown Syntax Error: Unsupported option name ("--no-progress").

Solution

Yarn 1.x (classic) may support the --no-progress option but it is not present in the docs. There is a --silent option that also works with Yarn 2+.

I suggest the option is changed, and also Buffalo switches the default to install yarn@berry when yarnpkg is not found. I will make a PR for this.

Info

go version go1.17.5 darwin/arm64
Buffalo (CLI), v0.18.1
Yarn version 2.4.3

Building on Ubuntu and deploying on Ubuntu causes template files to not be found

Description

I'm trying to build on my local Ubuntu machine and deploy to my remote Ubuntu server. When running the application on the server, the endpoints are reached without issue but the template files are not found which causes a 500 error.

Oddly, building inside a ubuntu docker container causes the app to find the templates properly.

Steps to Reproduce the Problem

  1. buffalo build on Ubuntu
  2. deploy to Ubuntu server
  3. PORT=80 GO_ENV=production ./myApp on server

Expected Behavior

I would expect the app to be fully functional

Actual Behavior

The app is partially functional. The endpoint are reachable but the template files are missing with a 500 error

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.14.15, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /home/fred/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /snap/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v14.17.3, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /snap/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.13, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /snap/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.5, 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 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 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.16.26, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /home/fred/code/myApp
Root        /home/fred/code/myApp
GoPath      /home/fred/go
PackagePkg  myApp
ActionsPkg  myApp/actions
ModelsPkg   myApp/models
GriftsPkg   myApp/grifts
WithModules true
Name        myApp
Bin         bin/app/myApp
VCS         git
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack true
WithNodeJs  true
WithYarn    false
WithDocker  true
WithGrifts  true
AsWeb       true
AsAPI       false
InApp       true
PackageJSON {map[build:NODE_ENV=production webpack -p --progress dev:webpack --watch]}

-> Buffalo: config/buffalo-app.toml
name = "myApp"
bin = "bin/app/myApp"
vcs = "git"
with_pop = false
with_sqlite = false
with_dep = false
with_webpack = true
with_nodejs = true
with_yarn = false
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/v2"

-> Buffalo: go.mod
module myApp

go 1.16
 
require (
	github.com/felixge/httpsnoop v1.0.2 // indirect
	github.com/go-sql-driver/mysql v1.6.0 // indirect
	github.com/gobuffalo/buffalo v0.16.26
	github.com/gobuffalo/envy v1.9.0
	github.com/gobuffalo/fizz v1.13.0 // indirect
	github.com/gobuffalo/mw-csrf v1.0.0
	github.com/gobuffalo/mw-forcessl v0.0.0-20200131175327-94b2bd771862
	github.com/gobuffalo/mw-i18n v1.1.0
	github.com/gobuffalo/mw-paramlogger v1.0.0
	github.com/gobuffalo/packr/v2 v2.8.1
	github.com/gobuffalo/pop/v5 v5.3.4
	github.com/gobuffalo/suite/v3 v3.0.0
	github.com/gobuffalo/validate/v3 v3.3.0
	github.com/golang/snappy v0.0.4 // indirect
	github.com/jackc/pgx/v4 v4.12.0 // indirect
	github.com/jmoiron/sqlx v1.3.4 // indirect
	github.com/klauspost/compress v1.13.1 // indirect
	github.com/markbates/grift v1.5.0
	github.com/mattn/go-isatty v0.0.13 // indirect
	github.com/microcosm-cc/bluemonday v1.0.15 // indirect
	github.com/pkg/errors v0.9.1
	github.com/rogpeppe/go-internal v1.8.0 // indirect
	github.com/sergi/go-diff v1.2.0 // indirect
	github.com/shopspring/decimal v1.2.0
	github.com/spf13/cobra v1.2.1 // indirect
	github.com/unrolled/secure v1.0.9
	go-hep.org/x/hep v0.28.5
	go.mongodb.org/mongo-driver v1.6.0
	golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
	golang.org/x/exp v0.0.0-20210712160552-8235cf48b5f6 // indirect
	golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
	golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
	golang.org/x/tools v0.1.5 // indirect
	gonum.org/v1/gonum v0.9.3
	gonum.org/v1/netlib v0.0.0-20200603212716-16abd5ac5bc7 // indirect
)

another fixer bug on fixing plugins. (not only fix but also some others)

buffalo fix fails on updating plugins (for buffalo-pop). It fails on removing the old one since the Remove() method is not that easy to use and the parameter cannot be easily selected by the real status of the application configuration.

Fixing only the calling parameter can be one option but I don't think the current key() mechanism is reasonable, so I am fixing it. (almost done, checking if there is any side effects.)

Steps to Reproduce the Problem

  1. prepare an old app tree (I used one created with buffalo v0.16.0
  2. run buffalo fix -y on it.
  3. additionally check config/buffalo-plugins.toml

Expected Behavior

The old version of buffalo-pop (v2) is removed, and the new one (v3@latest) is added.

Actual Behavior

Two of them are registered on the toml file, and the fix command failed.

Invalid Semantic Version

Description

When installing buffalo from source using this new cli repo, the version reported by buffalo seems wrong. buffalo version reports: INFO[0000] Buffalo version is: main rather than a specific version like v0.17.1. When running buffalo info, it also reports this as an error:

$ buffalo info
[...]
-> Buffalo (CLI): Checking minimum version requirements
✘ Invalid Semantic Version
[...]

This also seems to mess up some of the generation when using buffalo new or buffalo fix. For example the generated Dockerfile starts with FROM gobuffalo/buffalo:main as builder, where the tag 'main' does not seem to exist as far as I can see, while tags like 'gobuffalo/buffalo:v0.17.1' do exist.

This happens when installing the buffalo cli like stated in the README of this git repo, or as stated on gobuffalo.io, doesn't matter which one:

$ go install github.com/gobuffalo/cli/cmd/buffalo@latest

OR

$ go install github.com/gobuffalo/cli/cmd/[email protected]

Steps to Reproduce the Problem

This is reproducible in a clean environment such as a docker container.

  1. Start fresh golang container through docker or podman
  2. go install github.com/gobuffalo/cli/cmd/[email protected] OR go install github.com/gobuffalo/cli/cmd/buffalo@latest, both have the same problem
  3. buffalo version reports INFO[0000] Buffalo version is: main

Expected Behavior

buffalo should know it's current version and also use this when generating the Dockerfile for example.

Actual Behavior

buffalo reports main as its version and uses this 'version' when generating the Dockerfile.

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

This is from a clean golang docker container:

-> 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.16.6, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /go/bin.

-> Node: Checking installation
✘ The `node` executable could not be found on your system.
For help setting up your Node environment please follow the instructions for you platform at:

https://nodejs.org/en/download/

-> NPM: Checking installation
✘ The `npm` executable could not be found on your system.
For help setting up your NPM environment please follow the instructions for you platform at:

https://docs.npmjs.com/getting-started/configuring-your-local-environment

-> Yarn: Checking installation
✘ The `yarnpkg` executable could not be found on your system.
For help setting up your Yarn environment please follow the instructions for you platform at:

https://yarnpkg.com/en/docs/install

-> 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 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 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: /go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✘ Invalid Semantic Version

-> Buffalo: Application Details
Pwd         /go/src/test.de/coke
Root        /go/src/test.de/coke
GoPath      /go
PackagePkg  test.de/coke
ActionsPkg  test.de/coke/actions
ModelsPkg   test.de/coke/models
GriftsPkg   test.de/coke/grifts
WithModules true
Name        coke
Bin         bin/coke
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[]}

-> Buffalo: config/buffalo-app.toml
name = "coke"
bin = "bin/coke"
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/v2"

-> Buffalo: go.mod
module test.de/coke

go 1.16

require github.com/gobuffalo/buffalo-pop/v2 v2.3.0 // indirect

jquery-ujs which used for DELETE action does not work properly

Description

It seems like the current version (v0.17.1) of buffalo command or webpack (or jquery/jquery-ujs) does not work properly or changed its behavior. For a newly created app without any other modification, the link for DELETE does not work properly.

I tried some fixes and finally found how to fix the issue. However, I am not sure my direction is correct so please check this issue description and what I did, and let me know if you indeed could reproduced it and if you think my direction is acceptable. Then I will send PR on it.

(Briefly, the issue was the order of jquery and jquery-ujs (jquery.js should be included before rails.js) and I made the correct order by moving rails.js inclusion from webpack.config.js to application.js.)

Steps to Reproduce the Problem

My environment is Ubuntu 20.04.3 LTS

  1. Install buffalo by go install -v -tags sqlite github.com/gobuffalo/cli/cmd/[email protected]
  2. Create a new app by buffalo new sprite --db-type sqlite3
  3. Generate a new resource by buffalo g resource bottle
  4. Run the app by buffalo pop create && buffalo pop migrate && buffalo dev
  5. Add bottle instances, and then try to delete them.

Expected Behavior

The bottle instance should be deleted.

Actual Behavior

When I did it by clicking on the Delete button, the browser sent GET request and the Show action ran.

---> jquery-ujs (rails.js) did not work.

Investigation

I tested with the following HTML file to see if the issue is on my browser, and they all worked well.

<html>
	<head>
		<script src="jquery.js"></script>
		<script src="rails.js"></script>
	</head>
	<body>
		<a href="test.html" data-method="DELETE" data-confirm="asdf" data-remote="true">link remote</a>
		<a href="test.html" data-method="DELETE" data-confirm="asdf">link short</a>
	</body>
</html>

So I modified this package and the following patch helped me to see the expected behavior, but I am not sure if this direction is a proper way (I am not familiar with Webpack and js stuff).

--- a/internal/genny/assets/webpack/templates/assets/js/application.js.tmpl
+++ b/internal/genny/assets/webpack/templates/assets/js/application.js.tmpl
@@ -1,6 +1,7 @@
 require("expose-loader?$!expose-loader?jQuery!jquery");
 require("bootstrap/dist/js/bootstrap.bundle.js");
 require("@fortawesome/fontawesome-free/js/all.js");
+require("jquery-ujs/src/rails.js");
 
 $(() => {
 
--- a/internal/genny/assets/webpack/templates/webpack.config.js.tmpl
+++ b/internal/genny/assets/webpack/templates/webpack.config.js.tmpl
@@ -11,7 +11,6 @@ const configurator = {
   entries: function(){
     var entries = {
       application: [
-        './node_modules/jquery-ujs/src/rails.js',
         './assets/css/application.scss',
       ],
     }

Info

-> Go: Checking installation
✓ The `go` executable was found on your system at: /opt/google/go/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.16.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/sio4/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.4/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v14.17.4, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.4/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.14.14, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /home/sio4/.nvm/versions/node/v14.17.4/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.11, 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, 8.0.26, meets the minimum requirements.

-> SQLite3: Checking installation
✓ The `sqlite3` executable was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.31.1, meets the minimum requirements.

-> 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: /home/sio4/go/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✘ Invalid Semantic Version

-> Buffalo: Application Details
Pwd         /home/sio4/git/hyeoncheon/sprite
Root        /home/sio4/git/hyeoncheon/sprite
GoPath      /home/sio4/go
PackagePkg  sprite
ActionsPkg  sprite/actions
ModelsPkg   sprite/models
GriftsPkg   sprite/grifts
WithModules true
Name        sprite
Bin         bin/sprite
VCS         git
WithPop     true
WithSQLite  true
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 = "sprite"
bin = "bin/sprite"
vcs = "git"
with_pop = true
with_sqlite = true
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/v2"
  tags = ["sqlite"]

-> Buffalo: go.mod
module sprite

go 1.16

require (
	github.com/gobuffalo/buffalo v0.17.2
	github.com/gobuffalo/buffalo-pop/v2 v2.3.0
	github.com/gobuffalo/envy v1.9.0
	github.com/gobuffalo/mw-csrf v1.0.0
	github.com/gobuffalo/mw-forcessl v0.0.0-20200131175327-94b2bd771862
	github.com/gobuffalo/mw-i18n v1.1.0
	github.com/gobuffalo/mw-paramlogger v1.0.0
	github.com/gobuffalo/packr/v2 v2.8.1
	github.com/gobuffalo/pop/v5 v5.3.4
	github.com/gobuffalo/suite v2.8.2+incompatible
	github.com/gobuffalo/validate/v3 v3.1.0
	github.com/gobuffalo/x v0.0.0-20190224155809-6bb134105960
	github.com/gofrs/uuid v3.2.0+incompatible
	github.com/markbates/grift v1.5.0
	github.com/unrolled/secure v1.0.9
)

Command line buffalo to add/ remove a field to a model

This is a feature request to add a new command line buffalo to add a field to a model.
The idea is that you can today generate easily your ressources using for ex:
buffalo g resource profiles first_name name email

But later on if you which to add for example "city" to the resource profiles, then you have to go through several more complex steps ( mod the struct, migrate , use fizz... )
The proposed feature would enable to do something like :

buffalo addto resource profiles city
AND
buffalo removefrom resource profiles email

buffalo new exit status 1

buffalo new coke --api -v
DEBU[2021-04-26T11:39:03+08:00] packr#New name="buffalo:genny:newapp:core" path=../core/templates
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key="buffalo:genny:newapp:core" name="buffalo:genny:newapp:core"
DEBU[2021-04-26T11:39:03+08:00] packr.Box#found box="{"path":"../core/templates","name":"buffalo:genny:newapp:core","resolution_dir":"../core/templates","default_resolver":null}"
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=357939eff9d3a7884ef4ebadca1b1668 path=-dot-codeclimate.yml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=357939eff9d3a7884ef4ebadca1b1668
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=357939eff9d3a7884ef4ebadca1b1668
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=357939eff9d3a7884ef4ebadca1b1668 key=357939eff9d3a7884ef4ebadca1b1668
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="version: "2"\nchecks:\n method-lines:\n config:\n threshold: 100\nplugins:\n fixme:\n enabled: true\n gofmt:\n enabled: true\n golint:\n enabled: true\n govet:\n enabled: true\nexclude_patterns:\n - grifts/**/
\n - "**/
_test.go"\n - "
_test.go"\n - "**_test.go"\n - logs/
\n - public/
\n - templates/*\n - "/node_modules/"\n" path=-dot-codeclimate.yml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=3ab914a64676d62186c6060f4988dd39 path=README.md.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=3ab914a64676d62186c6060f4988dd39
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=3ab914a64676d62186c6060f4988dd39
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=3ab914a64676d62186c6060f4988dd39 key=3ab914a64676d62186c6060f4988dd39
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="# Welcome to Buffalo!\n\nThank you for choosing Buffalo for your web development needs.\n\n{{ if .opts.App.WithPop -}}\n## Database Setup\n\nIt looks like you chose to set up your application using a database! Fantastic!\n\nThe first thing you need to do is open up the "database.yml" file and edit it to use the correct usernames, passwords, hosts, etc... that are appropriate for your environment.\n\nYou will also need to make sure that you start/install the database of your choice. Buffalo won't install and start it for you.\n\n### Create Your Databases\n\nOk, so you've edited the "database.yml" file and started your database, now Buffalo can create the databases in that file for you:\n\n\t$ buffalo pop create -a\n\n{{end -}}\n\n## Starting the Application\n\nBuffalo ships with a command that will watch your application and automatically rebuild the Go binary and any assets for you. To do that run the "buffalo dev" command:\n\n\t$ buffalo dev\n\nIf you point your browser to http://127.0.0.1:3000 you should see a "Welcome to Buffalo!" page.\n\n
Congratulations!** You now have your Buffalo application up and running.\n\n## What Next?\n\nWe recommend you heading over to http://gobuffalo.io and reviewing all of the great documentation there.\n\nGood luck!\n\nPowered by Buffalo\n" path=README.md.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=59c3c4502bfd1cb86f9a7572f82ea9ed path=actions/app.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=59c3c4502bfd1cb86f9a7572f82ea9ed
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=59c3c4502bfd1cb86f9a7572f82ea9ed
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=59c3c4502bfd1cb86f9a7572f82ea9ed key=59c3c4502bfd1cb86f9a7572f82ea9ed
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package actions\n\nimport (\n\t"github.com/gobuffalo/buffalo"\n\t"github.com/gobuffalo/envy"\n\tforcessl "github.com/gobuffalo/mw-forcessl"\n\tparamlogger "github.com/gobuffalo/mw-paramlogger"\n\t"github.com/unrolled/secure"\n)\n\n// ENV is used to help switch settings based on where the\n// application is being run. Default is "development".\nvar ENV = envy.Get("GO_ENV", "development")\nvar app *buffalo.App\n\n// App is where all routes and middleware for buffalo\n// should be defined. This is the nerve center of your\n// application.\n//\n// Routing, middleware, groups, etc... are declared TOP -> DOWN.\n// This means if you add a middleware to app after declaring a\n// group, that group will NOT have that new middleware. The same\n// is true of resource declarations as well.\n//\n// It also means that routes are checked in the order they are declared.\n// ServeFiles is a CATCH-ALL route, so it should always be\n// placed last in the route declarations, as it will ensure routes\n// declared after it will never be called.\nfunc App() *buffalo.App {\n\tif app == nil {\n\t\tapp = buffalo.New(buffalo.Options{\n\t\t\tEnv: ENV,\n SessionName: "_{{.opts.App.Name.File}}_session",\n\t\t})\n\n\t\t// Automatically redirect to SSL\n\t\tapp.Use(forceSSL())\n\n\t\t// Log request parameters (filters apply).\n\t\tapp.Use(paramlogger.ParameterLogger)\n\n\t\tapp.GET("/", HomeHandler)\n\t}\n\n\treturn app\n}\n\n// forceSSL will return a middleware that will redirect an incoming request\n// if it is not HTTPS. "http://example.com\" => "https://example.com\".\n// This middleware does not enable SSL. for your application. To do that\n// we recommend using a proxy: https://gobuffalo.io/en/docs/proxy\n// for more information: https://github.com/unrolled/secure/\nfunc forceSSL() buffalo.MiddlewareFunc {\n\treturn forcessl.Middleware(secure.Options{\n\t\tSSLRedirect: ENV == "production",\n\t\tSSLProxyHeaders: map[string]string{"X-Forwarded-Proto": "https"},\n\t})\n}\n" path=actions/app.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=fcf9b1fe98670ffe85fadf1593a3b534 path=actions/home_test.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=fcf9b1fe98670ffe85fadf1593a3b534
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=fcf9b1fe98670ffe85fadf1593a3b534
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=fcf9b1fe98670ffe85fadf1593a3b534 key=fcf9b1fe98670ffe85fadf1593a3b534
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package actions\n\nimport "net/http"\n\nfunc (as *ActionSuite) Test_HomeHandler() {\n\tres := as.HTML("/").Get()\n\n\tas.Equal(http.StatusOK, res.Code)\n\tas.Contains(res.Body.String(), "Welcome to Buffalo")\n}\n" path=actions/home_test.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=cf6712125ddfa9d651b4f66d736d6303 path=main.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=cf6712125ddfa9d651b4f66d736d6303
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=cf6712125ddfa9d651b4f66d736d6303
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=cf6712125ddfa9d651b4f66d736d6303 key=cf6712125ddfa9d651b4f66d736d6303
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package main\n\nimport (\n "log"\n\n "{{ .opts.App.ActionsPkg }}"\n)\n\n// main is the starting point for your Buffalo application.\n// You can feel free and add to this main method, change\n// what it does, etc...\n// All we ask is that, at some point, you make sure to\n// call app.Serve(), unless you don't want to start your\n// application that is. :)\nfunc main() {\n app := actions.App()\n if err := app.Serve(); err != nil {\n log.Fatal(err)\n }\n}\n\n/
\n# Notes about main.go\n\n## SSL Support\n\nWe recommend placing your application behind a proxy, such as\nApache or Nginx and letting them do the SSL heavy lifting\nfor you. https://gobuffalo.io/en/docs/proxy\n\n## Buffalo Build\n\nWhen buffalo build is run to compile your binary, this main\nfunction will be at the heart of that binary. It is expected\nthat your main function will start your application using\nthe app.Serve() method.\n\n
/\n" path=main.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=c3816880f9d6ede8f28a4a1f0360251d path=-dot-env.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=c3816880f9d6ede8f28a4a1f0360251d
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=c3816880f9d6ede8f28a4a1f0360251d
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=c3816880f9d6ede8f28a4a1f0360251d key=c3816880f9d6ede8f28a4a1f0360251d
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="# This .env file was generated by buffalo, add here the env variables you need \n# buffalo to load into the ENV on application startup so your application works correctly.\n# To add variables use KEY=VALUE format, you can later retrieve this in your application\n# by using os.Getenv("KEY").\n#\n# Example:\n# DATABASE_PASSWORD=XXXXXXXXX\n# SESSION_SECRET=XXXXXXXXX\n# SMTP_SERVER=XXXXXXXXX\n" path=-dot-env.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=fb822827dff50f68a3cd4cbdf7a507a1 path=actions/actions_test.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=fb822827dff50f68a3cd4cbdf7a507a1
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=fb822827dff50f68a3cd4cbdf7a507a1
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=fb822827dff50f68a3cd4cbdf7a507a1 key=fb822827dff50f68a3cd4cbdf7a507a1
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package actions\n\nimport (\n\t"testing"\n\n\t"github.com/gobuffalo/packr/v2"\n\t"github.com/gobuffalo/suite"\n)\n\ntype ActionSuite struct {\n\t
suite.Action\n}\n\nfunc Test_ActionSuite(t *testing.T) {\n\taction, err := suite.NewActionWithFixtures(App(), packr.New("Test_ActionSuite", "../fixtures"))\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tas := &ActionSuite{\n\t\tAction: action,\n\t}\n\tsuite.Run(t, as)\n}\n" path=actions/actions_test.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=ea761d55cd5f5d08a297041a98564260 path=actions/home.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=ea761d55cd5f5d08a297041a98564260
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=ea761d55cd5f5d08a297041a98564260
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=ea761d55cd5f5d08a297041a98564260 key=ea761d55cd5f5d08a297041a98564260
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package actions\n\nimport (\n "net/http"\n\n "github.com/gobuffalo/buffalo"\n)\n\n// HomeHandler is a default handler to serve up\n// a home page.\nfunc HomeHandler(c buffalo.Context) error {\n\treturn c.Render(http.StatusOK, r.String("Hello from Buffalo"))\n}\n" path=actions/home.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=11da39f868d54d3279affe59a569252f path=actions/render.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=11da39f868d54d3279affe59a569252f
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=11da39f868d54d3279affe59a569252f
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=11da39f868d54d3279affe59a569252f key=11da39f868d54d3279affe59a569252f
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package actions\n\nimport (\n\t"github.com/gobuffalo/buffalo/render"\n)\n\nvar r *render.Engine\n\nfunc init() {\n\tr = render.New(render.Options{})\n}\n" path=actions/render.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=a2aa87a7f3879b4244cf8c8555382e93 path=fixtures/sample.toml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=a2aa87a7f3879b4244cf8c8555382e93
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=a2aa87a7f3879b4244cf8c8555382e93
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=a2aa87a7f3879b4244cf8c8555382e93 key=a2aa87a7f3879b4244cf8c8555382e93
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="[[scenario]]\nname = "lots of widgets"\n\n [[scenario.table]]\n name = "widgets"\n\n [[scenario.table.row]]\n id = "<%= uuidNamed("widget") %>"\n name = "This is widget gobuffalo/buffalo#1"\n body = "some widget body"\n created_at = "<%= now() %>"\n updated_at = "<%= now() %>"\n\n [[scenario.table.row]]\n id = "<%= uuid() %>"\n name = "This is widget gobuffalo/buffalo#2"\n body = "some widget body"\n created_at = "<%= now() %>"\n updated_at = "<%= now() %>"\n\n [[scenario.table]]\n name = "users"\n\n [[scenario.table.row]]\n id = "<%= uuid() %>"\n name = "Mark Bates"\n admin = true\n age = 41\n widget_id = "<%= uuidNamed("widget") %>"\n created_at = "<%= now() %>"\n updated_at = "<%= now() %>"\n\n" path=fixtures/sample.toml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=6d6389bc500aa7c88f06a525ffdc3964 path=grifts/init.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=6d6389bc500aa7c88f06a525ffdc3964
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=6d6389bc500aa7c88f06a525ffdc3964
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=6d6389bc500aa7c88f06a525ffdc3964 key=6d6389bc500aa7c88f06a525ffdc3964
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package grifts\n\nimport (\n "github.com/gobuffalo/buffalo"\n\t"{{ .opts.App.ActionsPkg }}"\n)\n\nfunc init() {\n buffalo.Grifts(actions.App())\n}\n" path=grifts/init.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=67965ff5ea3fd75bf5d6891d715a8d5f path=inflections.json.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=67965ff5ea3fd75bf5d6891d715a8d5f
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=67965ff5ea3fd75bf5d6891d715a8d5f
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=67965ff5ea3fd75bf5d6891d715a8d5f key=67965ff5ea3fd75bf5d6891d715a8d5f
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="{\n "singular": "plural"\n}\n" path=inflections.json.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=-dot-codeclimate.yml.tmpl path=-dot-codeclimate.yml.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=-dot-env.tmpl path=-dot-env.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=README.md.tmpl path=README.md.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=actions/actions_test.go.tmpl path=actions/actions_test.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=actions/app.go.tmpl path=actions/app.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=actions/home.go.tmpl path=actions/home.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=actions/home_test.go.tmpl path=actions/home_test.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=actions/render.go.tmpl path=actions/render.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=fixtures/sample.toml.tmpl path=fixtures/sample.toml.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=grifts/init.go.tmpl path=grifts/init.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=inflections.json.tmpl path=inflections.json.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=main.go.tmpl path=main.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#New name=github.com/gobuffalo/buffalo/common path=../docker/templates/common
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=github.com/gobuffalo/buffalo/common name=github.com/gobuffalo/buffalo/common
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"../docker/templates/common","name":"github.com/gobuffalo/buffalo/common","resolution_dir":"../docker/templates/common","default_resolver":null}"
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=200603a93cae9aee719dcb679b44c289 path=-dot-dockerignore.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=200603a93cae9aee719dcb679b44c289
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=200603a93cae9aee719dcb679b44c289
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=200603a93cae9aee719dcb679b44c289 key=200603a93cae9aee719dcb679b44c289
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="node_modules/\n
.log\nbin/\n" path=-dot-dockerignore.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=-dot-dockerignore.tmpl path=-dot-dockerignore.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#New name=github.com/gobuffalo/buffalo/multi path=../docker/templates/multi
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=github.com/gobuffalo/buffalo/multi name=github.com/gobuffalo/buffalo/multi
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"../docker/templates/multi","name":"github.com/gobuffalo/buffalo/multi","resolution_dir":"../docker/templates/multi","default_resolver":null}"
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=ab8942bb19a00ddb54dfc22df4c36c21 path=Dockerfile.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=ab8942bb19a00ddb54dfc22df4c36c21
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=ab8942bb19a00ddb54dfc22df4c36c21
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=ab8942bb19a00ddb54dfc22df4c36c21 key=ab8942bb19a00ddb54dfc22df4c36c21
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="# This is a multi-stage Dockerfile and requires >= Docker 17.05\n# https://docs.docker.com/engine/userguide/eng-image/multistage-build/\nFROM gobuffalo/buffalo:{{.opts.Version}} as builder\n\nENV GO111MODULE on\nENV GOPROXY http://proxy.golang.org\n\nRUN mkdir -p /src/{{.opts.App.PackagePkg}}\nWORKDIR /src/{{.opts.App.PackagePkg}}\n\n{{if .opts.App.WithWebpack -}}\n# this will cache the npm install step, unless package.json changes\nADD package.json .\n{{if .opts.App.WithYarn -}}\nADD yarn.lock .\nRUN yarn install --no-progress\n{{else -}}\nRUN npm install --no-progress\n{{end -}}\n{{end -}}\n\n# Copy the Go Modules manifests\nCOPY go.mod go.mod\nCOPY go.sum go.sum\n# cache deps before building and copying source so that we don't need to re-download as much\n# and so that source changes don't invalidate our downloaded layer\nRUN go mod download\n\nADD . .\nRUN buffalo build --static -o /bin/app\n\nFROM alpine\nRUN apk add --no-cache bash\nRUN apk add --no-cache ca-certificates\n\nWORKDIR /bin/\n\nCOPY --from=builder /bin/app .\n\n# Uncomment to run the binary in "production" mode:\n# ENV GO_ENV=production\n\n# Bind the app to 0.0.0.0 so it can be seen from outside the container\nENV ADDR=0.0.0.0\n\nEXPOSE 3000\n\n# Uncomment to run the migrations before running the binary:\n# CMD /bin/app migrate; /bin/app\nCMD exec /bin/app\n" path=Dockerfile.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=Dockerfile.tmpl path=Dockerfile.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#New name=github.com/gobuffalo/buffalo-pop/v2/genny/newapp/templates path=../newapp/templates
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=github.com/gobuffalo/buffalo-pop/v2/genny/newapp/templates name=github.com/gobuffalo/buffalo-pop/v2/genny/newapp/templates
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"../newapp/templates","name":"github.com/gobuffalo/buffalo-pop/v2/genny/newapp/templates","resolution_dir":"../newapp/templates","default_resolver":null}"
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=aa5079864222621c47b8b1835eadab86 forward-path=25797902602e6629df39f49ac17f37d6 path=models/models_test.go.plush
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=aa5079864222621c47b8b1835eadab86 name=aa5079864222621c47b8b1835eadab86
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"aa5079864222621c47b8b1835eadab86","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=aa5079864222621c47b8b1835eadab86 key=25797902602e6629df39f49ac17f37d6
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=aa5079864222621c47b8b1835eadab86 name=25797902602e6629df39f49ac17f37d6
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=aa5079864222621c47b8b1835eadab86 file=25797902602e6629df39f49ac17f37d6 key=25797902602e6629df39f49ac17f37d6
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package models\n\nimport (\n\t"testing"\n\n\t"github.com/gobuffalo/packr/v2"\n\t"github.com/gobuffalo/suite"\n)\n\ntype ModelSuite struct {\n\t
suite.Model\n}\n\nfunc Test_ModelSuite(t *testing.T) {\n\tmodel, err := suite.NewModelWithFixtures(packr.New("app:models:test:fixtures","../fixtures"))\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tas := &ModelSuite{\n\t\tModel: model,\n\t}\n\tsuite.Run(t, as)\n}\n" path=models/models_test.go.plush
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=aa5079864222621c47b8b1835eadab86 forward-path=9972e34a517633d024117a3a4b66c4e5 path=grifts/db.go.plush
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=aa5079864222621c47b8b1835eadab86 name=aa5079864222621c47b8b1835eadab86
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"aa5079864222621c47b8b1835eadab86","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=aa5079864222621c47b8b1835eadab86 key=9972e34a517633d024117a3a4b66c4e5
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=aa5079864222621c47b8b1835eadab86 name=9972e34a517633d024117a3a4b66c4e5
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=aa5079864222621c47b8b1835eadab86 file=9972e34a517633d024117a3a4b66c4e5 key=9972e34a517633d024117a3a4b66c4e5
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package grifts\n\nimport (\n\t"github.com/markbates/grift/grift"\n)\n\nvar _ = grift.Namespace("db", func() {\n\n\tgrift.Desc("seed", "Seeds a database")\n\tgrift.Add("seed", func(c *grift.Context) error {\n\t\t// Add DB seeding stuff here\n\t\treturn nil\n\t})\n\n})\n" path=grifts/db.go.plush
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=aa5079864222621c47b8b1835eadab86 forward-path=0d4dd261a59e085078e02aa68e58a0d9 path=models/models.go.plush
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=aa5079864222621c47b8b1835eadab86 name=aa5079864222621c47b8b1835eadab86
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"aa5079864222621c47b8b1835eadab86","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=aa5079864222621c47b8b1835eadab86 key=0d4dd261a59e085078e02aa68e58a0d9
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=aa5079864222621c47b8b1835eadab86 name=0d4dd261a59e085078e02aa68e58a0d9
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=aa5079864222621c47b8b1835eadab86 file=0d4dd261a59e085078e02aa68e58a0d9 key=0d4dd261a59e085078e02aa68e58a0d9
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package models\n\nimport (\n\t"log"\n\n\t"github.com/gobuffalo/envy"\n\t"github.com/gobuffalo/pop/v5"\n)\n\n// DB is a connection to your database to be used\n// throughout your application.\nvar DB *pop.Connection\n\nfunc init() {\n\tvar err error\n\tenv := envy.Get("GO_ENV", "development")\n\tDB, err = pop.Connect(env)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tpop.Debug = env == "development"\n}\n" path=models/models.go.plush
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=grifts/db.go.plush path=grifts/db.go.plush
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=models/models.go.plush path=models/models.go.plush
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=models/models_test.go.plush path=models/models_test.go.plush
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Open name=postgres.yml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="pop:genny:config" key=postgres.yml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="pop:genny:config" forward-box=a3cfa2fe33a85ca3941b341e0c87c233 forward-path=3abfce8456ed838a8a49ed01c478f6c3 path=postgres.yml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=a3cfa2fe33a85ca3941b341e0c87c233 name=a3cfa2fe33a85ca3941b341e0c87c233
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"a3cfa2fe33a85ca3941b341e0c87c233","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=a3cfa2fe33a85ca3941b341e0c87c233 key=3abfce8456ed838a8a49ed01c478f6c3
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=a3cfa2fe33a85ca3941b341e0c87c233 name=3abfce8456ed838a8a49ed01c478f6c3
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=a3cfa2fe33a85ca3941b341e0c87c233 file=3abfce8456ed838a8a49ed01c478f6c3 key=3abfce8456ed838a8a49ed01c478f6c3
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="pop:genny:config" file="---\ndevelopment:\n dialect: postgres\n database: {{.opts.Prefix}}_development\n user: postgres\n password: postgres\n host: 127.0.0.1\n pool: 5\n\ntest:\n url: {{"{{"}}envOr "TEST_DATABASE_URL" "postgres://postgres:[email protected]:5432/{{.opts.Prefix}}_test?sslmode=disable"}}\n\nproduction:\n url: {{"{{"}}envOr "DATABASE_URL" "postgres://postgres:[email protected]:5432/{{.opts.Prefix}}production?sslmode=disable"}}\n" path=postgres.yml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="pop:genny:config" file=postgres.yml.tmpl key=postgres.yml.tmpl
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Open file=postgres.yml.tmpl name=postgres.yml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#New name="buffalo:genny:refresh" path=../refresh/templates
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key="buffalo:genny:refresh" name="buffalo:genny:refresh"
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"../refresh/templates","name":"buffalo:genny:refresh","resolution_dir":"../refresh/templates","default_resolver":null}"
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=c6660b1c6a1a45d1cb79e72c7bb65764 path=-dot-buffalo.dev.yml.plush
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=c6660b1c6a1a45d1cb79e72c7bb65764
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=c6660b1c6a1a45d1cb79e72c7bb65764
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=c6660b1c6a1a45d1cb79e72c7bb65764 key=c6660b1c6a1a45d1cb79e72c7bb65764
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="app_root: .\nignored_folders:\n- vendor\n- log\n- logs\n- assets\n- public\n- grifts\n- tmp\n- bin\n- node_modules\n- .sass-cache\nincluded_extensions:\n- .go\n- .env\nbuild_path: tmp\nbuild_delay: 200ns\nbinary_name: <%= app.Name %>-build\ncommand_flags: []\nenable_colors: true\nlog_name: buffalo\n" path=-dot-buffalo.dev.yml.plush
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#Walk osPath=-dot-buffalo.dev.yml.plush path=-dot-buffalo.dev.yml.plush
DEBU[2021-04-26T11:39:03+08:00] packr#New name="buffalo:genny:newapp:api" path=../api/templates
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key="buffalo:genny:newapp:api" name="buffalo:genny:newapp:api"
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"../api/templates","name":"buffalo:genny:newapp:api","resolution_dir":"../api/templates","default_resolver":null}"
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=a8ec67aa1e41fcbd2cdd86240d37c5e0 path=actions/app.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=a8ec67aa1e41fcbd2cdd86240d37c5e0
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=a8ec67aa1e41fcbd2cdd86240d37c5e0
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=a8ec67aa1e41fcbd2cdd86240d37c5e0 key=a8ec67aa1e41fcbd2cdd86240d37c5e0
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package actions\n\nimport (\n "github.com/gobuffalo/envy"\n "github.com/gobuffalo/buffalo"\n forcessl "github.com/gobuffalo/mw-forcessl"\n paramlogger "github.com/gobuffalo/mw-paramlogger"\n "github.com/unrolled/secure"\n i18n "github.com/gobuffalo/mw-i18n"\n\n {{ if .opts.App.WithPop }}\n "{{.opts.App.ModelsPkg}}"\n "github.com/gobuffalo/buffalo-pop/v2/pop/popmw"\n {{ end -}}\n\n "github.com/rs/cors"\n "github.com/gobuffalo/x/sessions"\n contenttype "github.com/gobuffalo/mw-contenttype"\n)\n\n// ENV is used to help switch settings based on where the\n// application is being run. Default is "development".\nvar ENV = envy.Get("GO_ENV", "development")\nvar app *buffalo.App\nvar T *i18n.Translator\n\n// App is where all routes and middleware for buffalo\n// should be defined. This is the nerve center of your\n// application.\n//\n// Routing, middleware, groups, etc... are declared TOP -> DOWN.\n// This means if you add a middleware to app after declaring a\n// group, that group will NOT have that new middleware. The same\n// is true of resource declarations as well.\n//\n// It also means that routes are checked in the order they are declared.\n// ServeFiles is a CATCH-ALL route, so it should always be\n// placed last in the route declarations, as it will prevent routes\n// declared after it to never be called.\nfunc App() *buffalo.App {\n if app == nil {\n app = buffalo.New(buffalo.Options{\n Env: ENV,\n SessionStore: sessions.Null{},\n PreWares: []buffalo.PreWare{\n cors.Default().Handler,\n },\n SessionName: "
{{.opts.App.Name.File}}_session",\n })\n\n // Automatically redirect to SSL\n app.Use(forceSSL())\n\n // Log request parameters (filters apply).\n app.Use(paramlogger.ParameterLogger)\n\n // Set the request content type to JSON\n app.Use(contenttype.Set("application/json"))\n\n {{ if .opts.App.WithPop }}\n // Wraps each request in a transaction.\n // c.Value("tx").(*pop.Connection)\n // Remove to disable this.\n app.Use(popmw.Transaction(models.DB))\n {{ end }}\n\n app.GET("/", HomeHandler)\n }\n\n return app\n}\n\n// translations will load locale files, set up the translator actions.T,\n// and will return a middleware to use to load the correct locale for each\n// request.\n// for more information: https://gobuffalo.io/en/docs/localization\nfunc translations() buffalo.MiddlewareFunc {\n var err error\n if T, err = i18n.New(packr.New("app:locales", "../locales"), "en-US"); err != nil {\n app.Stop(err)\n }\n return T.Middleware()\n}\n\n// forceSSL will return a middleware that will redirect an incoming request\n// if it is not HTTPS. "http://example.com\" => "https://example.com\".\n// This middleware does not enable SSL. for your application. To do that\n// we recommend using a proxy: https://gobuffalo.io/en/docs/proxy\n// for more information: https://github.com/unrolled/secure/\nfunc forceSSL() buffalo.MiddlewareFunc {\n return forcessl.Middleware(secure.Options{\n SSLRedirect: ENV == "production",\n SSLProxyHeaders: map[string]string{"X-Forwarded-Proto": "https"},\n })\n}\n" path=actions/app.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=545676fd88c0d1d27198d283049c41b0 path=actions/home.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=545676fd88c0d1d27198d283049c41b0
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=545676fd88c0d1d27198d283049c41b0
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=545676fd88c0d1d27198d283049c41b0 key=545676fd88c0d1d27198d283049c41b0
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package actions\n\nimport (\n "net/http"\n\n "github.com/gobuffalo/buffalo"\n)\n\n// HomeHandler is a default handler to serve up\n// a home page.\nfunc HomeHandler(c buffalo.Context) error {\n return c.Render(http.StatusOK, r.JSON(map[string]string{"message": "Welcome to Buffalo!"}))\n}\n" path=actions/home.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=ce01971710d9b9f11bba237baf76ec52 path=actions/home_test.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=ce01971710d9b9f11bba237baf76ec52
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=ce01971710d9b9f11bba237baf76ec52
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=ce01971710d9b9f11bba237baf76ec52 key=ce01971710d9b9f11bba237baf76ec52
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package actions\n\nimport "net/http"\n\nfunc (as *ActionSuite) Test_HomeHandler() {\n\tres := as.JSON("/").Get()\n\n\tas.Equal(http.StatusOK, res.Code)\n\tas.Contains(res.Body.String(), "Welcome to Buffalo")\n}\n" path=actions/home_test.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=e8972ac6dc3e57b0c59883df456ad37c path=actions/render.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] *packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=e8972ac6dc3e57b0c59883df456ad37c
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=e8972ac6dc3e57b0c59883df456ad37c
DEBU[2021-04-26T11:39:03+08:00] *resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=e8972ac6dc3e57b0c59883df456ad37c key=e8972ac6dc3e57b0c59883df456ad37c
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="package actions\n\nimport (\n "github.com/gobuffalo/buffalo/render"\n)\n\nvar r *render.Engine\n\nfunc init() {\n r = render.New(render.Options{\n DefaultContentType: "application/json",\n })\n}\n" path=actions/render.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=9897b71949d4e127aa00c50724ae4b5a path=locales/all.en-us.yaml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=9897b71949d4e127aa00c50724ae4b5a
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=9897b71949d4e127aa00c50724ae4b5a
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=9897b71949d4e127aa00c50724ae4b5a key=9897b71949d4e127aa00c50724ae4b5a
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="" file="# For more information on using i18n see: https://github.com/nicksnyder/go-i18n\n- id: welcome_greeting\n translation: "Welcome to Buffalo (EN)"\n" path=locales/all.en-us.yaml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Box#Walk osPath=actions/app.go.tmpl path=actions/app.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Box#Walk osPath=actions/home.go.tmpl path=actions/home.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Box#Walk osPath=actions/home_test.go.tmpl path=actions/home_test.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Box#Walk osPath=actions/render.go.tmpl path=actions/render.go.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Box#Walk osPath=locales/all.en-us.yaml.tmpl path=locales/all.en-us.yaml.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#New name="buffalo:genny:vcs" path=../vcs/templates
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key="buffalo:genny:vcs" name="buffalo:genny:vcs"
DEBU[2021-04-26T11:39:03+08:00] packr.Box#found box="{"path":"../vcs/templates","name":"buffalo:genny:vcs","resolution_dir":"../vcs/templates","default_resolver":null}"
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="buffalo:genny:vcs" key=ignore.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="buffalo:genny:vcs" forward-box=c0c964921797caa6d52bcd12ef38ede5 forward-path=3e00c27b916d08ee5aa54c8a3d2f31a5 path=ignore.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr#findBox key=c0c964921797caa6d52bcd12ef38ede5 name=c0c964921797caa6d52bcd12ef38ede5
DEBU[2021-04-26T11:39:03+08:00] packr.Box#found box="{"path":"","name":"c0c964921797caa6d52bcd12ef38ede5","resolution_dir":"/Users/freeman/Documents/workspaces/GolandProjects","default_resolver":{}}"
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 key=3e00c27b916d08ee5aa54c8a3d2f31a5
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 name=3e00c27b916d08ee5aa54c8a3d2f31a5
DEBU[2021-04-26T11:39:03+08:00] resolver.HexGzip#Resolve box=c0c964921797caa6d52bcd12ef38ede5 file=3e00c27b916d08ee5aa54c8a3d2f31a5 key=3e00c27b916d08ee5aa54c8a3d2f31a5
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="buffalo:genny:vcs" file="vendor/\n
/
.log\n
/
.sqlite\n.idea/\nbin/\ntmp/\nnode_modules/\n.sass-cache/\n
-packr.go\npublic/assets/\n.vscode/\n.grifter/\n.env\n
/.DS_Store\n
.pid\ncoverage\ncoverage.data\n.svn\n.console_history\n.sass-cache/
\n.jhw-cache/\njhw.
\n
.sublime
\ndist/\ngenerated/\n.vendor/\n\n" path=ignore.tmpl
DEBU[2021-04-26T11:39:03+08:00] packr.Pointer#Resolve box="buffalo:genny:vcs" file=ignore.tmpl key=ignore.tmpl
DEBU[2021-04-26T11:39:03+08:00] Step: dc997bcd
DEBU[2021-04-26T11:39:03+08:00] Chdir: /Users/freeman/Documents/workspaces/GolandProjects/coke
DEBU[2021-04-26T11:39:03+08:00] Exec: go mod init ../coke
go: malformed import path "../coke": invalid path element ".."
Usage:
buffalo new [name] [flags]

Flags:
--api skip all front-end code and configure for an API server
--ci-provider string specify the type of ci file you would like buffalo to generate [none, travis, gitlab-ci, circleci] (default "none")
--config string config file (default is $HOME/.buffalo.yaml)
--db-type string specify the type of database you want to use [cockroach, mariadb, mysql, postgres] (default "postgres")
--docker string specify the type of Docker file to generate [none, multi, standard] (default "multi")
-d, --dry-run dry run
-f, --force delete and remake if the app already exists
-h, --help help for new
--module string specify the root module (package) name. [defaults to 'automatic']
--skip-config skips using the config file
--skip-pop skips adding pop/soda to your app
--skip-webpack skips adding Webpack to your app
--skip-yarn use npm instead of yarn for frontend dependencies management
--vcs string specify the Version control system you would like to use [none, git, bzr] (default "git")
-v, --verbose verbosely print out the go get commands

ERRO[0000] Error: exit status 1

This is the buffalo info below:
buffalo info
-> Go: Checking installation
✓ The go executable was found on your system at: /usr/local/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.15, meets the minimum requirements.

-> Go: Checking Package Management
✓ You are using Go Modules (go) for package management.

-> Go: Checking PATH
✘ Your PATH (/Users/freeman/.tiup/bin:/Users/freeman/Documents/workspaces/GolandProjects/bin:/Users/freeman/bin:/usr/local/bin:/Users/freeman/.composer/vendor/bin:/Users/freeman/.tiup/bin:/Users/freeman/Documents/workspaces/GolandProjects/bin:/Users/freeman/bin:/usr/local/bin:/Users/freeman/.composer/vendor/bin:/Users/freeman/.tiup/bin:/Users/freeman/bin:/usr/local/bin:/Users/freeman/.composer/vendor/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin) does not contain /Users/freeman/Documents/workspaces/GolandProjects/bin.

Without /Users/freeman/Documents/workspaces/GolandProjects/bin in your PATH any Go executables can not be run globally.

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

-> Node: Checking installation
✘ The node executable could not be found on your system.
For help setting up your Node environment please follow the instructions for you platform at:

https://nodejs.org/en/download/

-> NPM: Checking installation
✘ The npm executable could not be found on your system.
For help setting up your NPM environment please follow the instructions for you platform at:

https://docs.npmjs.com/getting-started/configuring-your-local-environment

-> Yarn: Checking installation
✘ The yarnpkg executable could not be found on your system.
For help setting up your Yarn environment please follow the instructions for you platform at:

https://yarnpkg.com/en/docs/install

-> PostgreSQL: Checking installation
✓ The postgres executable was found on your system at: /usr/local/bin/postgres

-> PostgreSQL: Checking minimum version requirements
✓ Your version of PostgreSQL, 12.4.0, meets the minimum requirements.

-> MySQL: Checking installation
✓ The mysql executable was found on your system at: /usr/local/bin/mysql

-> MySQL: Checking minimum version requirements
✓ Your version of MySQL, 8.0.21, meets the minimum requirements.

-> SQLite3: Checking installation
✓ The sqlite3 executable was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.32.3, meets the minimum requirements.

-> 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: /Users/freeman/Documents/workspaces/GolandProjects/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.16.22, meets the minimum requirements.

-> Buffalo: Application Details
Pwd /Users/freeman/Documents/workspaces/GolandProjects/coke
Root /Users/freeman/Documents/workspaces/GolandProjects/coke
GoPath /Users/freeman/Documents/workspaces/GolandProjects
PackagePkg ../coke
ActionsPkg ../coke/actions
ModelsPkg ../coke/models
GriftsPkg ../coke/grifts
WithModules true
Name coke
Bin bin/coke
VCS
WithPop false
WithSQLite false
WithDep false
WithWebpack false
WithNodeJs false
WithYarn false
WithDocker false
WithGrifts false
AsWeb true
AsAPI false
InApp false
PackageJSON {map[]}

It seems error occurred in step when "go mod init" with a wrong directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.