gobuffalo / buffalo

Rapid Web Development w/ Go
http://gobuffalo.io
MIT License
8.08k stars 578 forks source link

"[DEPRECATED] generate.Config has been deprecated." message during first install #1461

Closed frederikhors closed 5 years ago

frederikhors commented 6 years ago

Using the same commands of this: https://github.com/gobuffalo/buffalo/issues/1460

it gives to me this message:

...
create  grifts\db.go
  run  go get github.com/gobuffalo/buffalo-pop
[DEPRECATED] generate.Config has been deprecated.
  Use github.com/gobuffalo/pop/genny/config instead.
...

Why?

Info

``` ### Buffalo Version v0.13.6 ### App Information Pwd=C:\Users\fred\Desktop\projects\go\src Root=C:\Users\fred\Desktop\projects\go\src GoPath=C:\Users\fred\go;C:\Users\fred\Desktop\projects\go; Name=src Bin=bin\src.exe PackagePkg=../../Desktop/projects/Go/src ActionsPkg=../../Desktop/projects/Go/src/actions ModelsPkg=../../Desktop/projects/Go/src/models GriftsPkg=../../Desktop/projects/Go/src/grifts VCS= WithPop=false WithSQLite=false WithDep=false WithWebpack=false WithYarn=false WithDocker=false WithGrifts=false WithModules=false ### Go Version go version go1.11.2 windows/amd64 ### Go Env set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\fred\AppData\Local\go-build set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOOS=windows set GOPATH=C:\Users\fred\go;C:\Users\fred\Desktop\projects\go; set GOPROXY= set GORACE= set GOROOT=C:\Go set GOTMPDIR= set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64 set GCCGO=gccgo set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD= set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\fred\AppData\Local\Temp\go-build593158554=/tmp/go-build -gno-record-gcc-switches ### Node Version v10.13.0 ### NPM Version 6.4.1 ### Yarn Version 1.10.1 ### PostgreSQL Version PostgreSQL Not Found ### MySQL Version MySQL Not Found ### SQLite Version SQLite Not Found ### Dep Version could not find a Gopkg.toml file ### Dep Status could not find a Gopkg.toml file ```
lukasschlueter commented 6 years ago

Good catch!

The soda generator for creating the db config still uses the old generate.Config: https://github.com/gobuffalo/buffalo/blob/f45656ff3ff1402d362a16d9420fc7c1edf67cff/generators/soda/soda.go#L42

Maybe you want to have a look at this yourself and open a PR?

markbates commented 5 years ago

This should be fixed in development.