Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soda(buffalo pop) command got error. #1614

Open
yokkora opened this Issue Feb 28, 2019 · 9 comments

Comments

Projects
None yet
5 participants
@yokkora
Copy link

yokkora commented Feb 28, 2019

2019-02-28 21 37 09

I run
# buffalo pop

Then got,

ERRO[0002] Pop support has been moved to the https://github.com/gobuffalo/buffalo-pop plugin.

Go Get Installation:

	$ go get github.com/gobuffalo/buffalo-pop

Buffalo Plugins Installation*:

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

* Requires https://github.com/gobuffalo/buffalo-plugins installed. 

@lukasschlueter

This comment has been minimized.

Copy link
Member

lukasschlueter commented Feb 28, 2019

Did you try to run one of these commands?

@yokkora

This comment has been minimized.

Copy link
Author

yokkora commented Mar 4, 2019

@lukasschlueter

Did you try to run one of these commands?

yes, it seems to be ok.

# buffalo-pop pop
v4.9.6

A tasty treat for all your database needs

Usage:
  buffalo-pop pop [flags]
  buffalo-pop pop [command]

Aliases:
  pop, db

Available Commands:
  create      Creates databases for you
  destroy     Allows to destroy generated code.
  drop        Drops databases for you
  fix         Brings pop, soda, and fizz files in line with the latest APIs
  generate    Generates config, model, and migrations files.
  migrate     Runs migrations against your database.
  reset       Drop, then recreate databases
  schema      Tools for working with your database schema
  version     current version of pop

Flags:
  -c, --config string   The configuration file you would like to use.
  -d, --debug           Use debug/verbose mode
  -e, --env string      The environment you want to run migrations against. Will use $GO_ENV if set. (default "development")
  -h, --help            help for pop
  -p, --path string     Path to the migrations folder (default "./migrations")
  -v, --version         Show version information

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

This comment has been minimized.

Copy link
Member

lukasschlueter commented Mar 4, 2019

buffalo pop still does not work for you?

Can you post your buffalo info please?

@stanislas-m I guess this belongs to the buffalo repo, can you transfer it?

@yokkora

This comment has been minimized.

Copy link
Author

yokkora commented Mar 4, 2019

@lukasschlueter

buffalo pop still does not work for you?

No, it is not still work.

# buffalo pop
ERRO[0003] Pop support has been moved to the https://github.com/gobuffalo/buffalo-pop plugin.

Go Get Installation:

	$ go get github.com/gobuffalo/buffalo-pop

Buffalo Plugins Installation*:

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

* Requires https://github.com/gobuffalo/buffalo-plugins installed. 

Result of buffalo info is below, thanks.

# buffalo info

### App Information
Pwd=/go/src/program_test
Root=/go/src/program_test
GoPath=/go
Name=program_test
Bin=bin/program_test
PackagePkg=program_test
ActionsPkg=program_test/actions
ModelsPkg=program_test/models
GriftsPkg=program_test/grifts
VCS=
WithPop=true
WithSQLite=false
WithDep=false
WithWebpack=true
WithYarn=true
WithDocker=false
WithGrifts=true
WithModules=true

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

### Go Env
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/go/src/program_test/go.mod"
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-build479281361=/tmp/go-build -gno-record-gcc-switches"

### Node Version
v8.15.0

### NPM Version
6.4.1

### Yarn Version
1.13.0

### PostgreSQL Version
PostgreSQL Not Found

### MySQL Version
mysql  Ver 15.1 Distrib 10.1.37-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

### SQLite Version
3.16.2 2017-01-06 16:32:41 a65a62893ca8319e89e48b8a38cf8a59c69a8209

### Dep Version
could not find a Gopkg.toml file

### Dep Status
could not find a Gopkg.toml file

### go.mod
module program_test

require (
	dmitri.shuralyov.com/app/changes v0.0.0-20181114035150-5af16e21babb // indirect
	dmitri.shuralyov.com/service/change v0.0.0-20190203163610-217368fe4577 // indirect
	git.apache.org/thrift.git v0.12.0 // indirect
	github.com/Shopify/sarama v1.20.1 // indirect
	github.com/coreos/go-systemd v0.0.0-20190212144455-93d5ec2c7f76 // indirect
	github.com/denisenkom/go-mssqldb v0.0.0-20190204142019-df6d76eb9289 // indirect
	github.com/go-logfmt/logfmt v0.4.0 // indirect
	github.com/go-sql-driver/mysql v1.4.1
	github.com/gobuffalo/buffalo v0.13.13
	github.com/gobuffalo/buffalo-pop v1.7.0
	github.com/gobuffalo/envy v1.6.15
	github.com/gobuffalo/fizz v1.5.1 // 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/packr v1.22.0
	github.com/gobuffalo/pop v4.9.8+incompatible
	github.com/gobuffalo/suite v2.6.0+incompatible
	github.com/gogo/protobuf v1.2.1 // indirect
	github.com/golang/lint v0.0.0-20181217174547-8f45f776aaf1 // indirect
	github.com/golang/snappy v0.0.1 // indirect
	github.com/google/pprof v0.0.0-20190208070709-b421f19a5c07 // indirect
	github.com/googleapis/gax-go v2.0.2+incompatible // indirect
	github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect
	github.com/gregjones/httpcache v0.0.0-20190212212710-3befbb6ad0cc // indirect
	github.com/grpc-ecosystem/grpc-gateway v1.7.0 // indirect
	github.com/jtolds/gls v4.2.1+incompatible // indirect
	github.com/kisielk/errcheck v1.2.0 // indirect
	github.com/markbates/grift v1.0.5
	github.com/mattn/go-oci8 v0.0.0-20190205102930-2100fbe14d69 // indirect
	github.com/openzipkin/zipkin-go v0.1.5 // indirect
	github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 // indirect
	github.com/prometheus/common v0.2.0 // indirect
	github.com/prometheus/procfs v0.0.0-20190219184716-e4d4a2206da0 // indirect
	github.com/russross/blackfriday v2.0.0+incompatible // indirect
	github.com/shurcooL/go v0.0.0-20190121191506-3fef8c783dec // indirect
	github.com/shurcooL/gofontwoff v0.0.0-20181114050219-180f79e6909d // indirect
	github.com/shurcooL/highlight_diff v0.0.0-20181222201841-111da2e7d480 // indirect
	github.com/shurcooL/highlight_go v0.0.0-20181215221002-9d8641ddf2e1 // indirect
	github.com/shurcooL/home v0.0.0-20190204141146-5c8ae21d4240 // indirect
	github.com/shurcooL/htmlg v0.0.0-20190120222857-1e8a37b806f3 // indirect
	github.com/shurcooL/httpfs v0.0.0-20181222201310-74dc9339e414 // indirect
	github.com/shurcooL/issues v0.0.0-20190120000219-08d8dadf8acb // indirect
	github.com/shurcooL/issuesapp v0.0.0-20181229001453-b8198a402c58 // indirect
	github.com/shurcooL/notifications v0.0.0-20181111060504-bcc2b3082a7a // indirect
	github.com/shurcooL/octicon v0.0.0-20181222203144-9ff1a4cf27f4 // indirect
	github.com/shurcooL/reactions v0.0.0-20181222204718-145cd5e7f3d1 // indirect
	github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
	github.com/shurcooL/webdavfs v0.0.0-20181215192745-5988b2d638f6 // indirect
	github.com/smartystreets/assertions v0.0.0-20190215210624-980c5ac6f3ac // indirect
	github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c
	github.com/unrolled/secure v1.0.0
	go.opencensus.io v0.19.0 // indirect
	go4.org v0.0.0-20190218023631-ce4c26f7be8e // indirect
	golang.org/x/build v0.0.0-20190219204446-88cd9dd98818 // indirect
	golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2 // indirect
	golang.org/x/exp v0.0.0-20190212162250-21964bba6549 // indirect
	golang.org/x/oauth2 v0.0.0-20190219183015-4b83411ed2b3 // indirect
	golang.org/x/perf v0.0.0-20190124201629-844a5f5b46f4 // indirect
	golang.org/x/tools v0.0.0-20190219185102-9394956cfdc5 // indirect
	google.golang.org/genproto v0.0.0-20190219182410-082222b4a5c5 // indirect
	google.golang.org/grpc v1.18.0 // indirect
	gopkg.in/h2non/gock.v1 v1.0.14
	gopkg.in/testfixtures.v2 v2.5.3
	honnef.co/go/tools v0.0.0-20190215041234-466a0476246c // indirect
	sourcegraph.com/sqs/pbtypes v1.0.0 // indirect
)

@stanislas-m stanislas-m transferred this issue from gobuffalo/gobuffalo Mar 4, 2019

@markbates

This comment has been minimized.

Copy link
Member

markbates commented Mar 5, 2019

Please confirm that you are using a config/buffalo-plugins.toml file and that the plugin is listed there. https://gobuffalo.io/en/docs/plugins#with-configuration

@twatzl

This comment has been minimized.

Copy link

twatzl commented Mar 10, 2019

I just had the same issue with buffalo 0.13.12. Just updated to 0.14 and the issue was gone.

Edit: Just realized it was not exactly the same, because I got an error when running the go get command. However outside of $GOPATH the go get and buffalo db command worked. So I got the same error as @yokkora gets with buffalo 0.13.12 inside of $GOPATH, but outside of $GOPATH it worked. As stated after the updated to buffalo 0.14 it worked also within $GOPATH.

@yokkora

This comment has been minimized.

Copy link
Author

yokkora commented Mar 11, 2019

@twatzl @markbates

Thank you for reply.
I updated buffalo to v0.14.0.

### Buffalo Version
v0.14.0

And then run below command to use plugin.

go get -u -v github.com/gobuffalo/buffalo-plugins

I think it will work, but it wasn't.
When I'm in /go/src and /go/src/program_test/config, it has plugins,
but /go/src/program_test doesn't have plugins.

It seems not to be good, but I don't understand why it is.

# pwd  
/go/src

# buffalo
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.14.0
  generate    Generate application components
  help        Help about any command
  info        Print diagnostic information (useful for debugging)
  new         Creates a new Buffalo application
  plugins     [PLUGIN] 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
# pwd
/go/src/pro/config

# buffalo
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.14.0
  generate    Generate application components
  help        Help about any command
  info        Print diagnostic information (useful for debugging)
  new         Creates a new Buffalo application
  plugins     [PLUGIN] 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.
# pwd
/go/src/program_test

# buffalo
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.14.0
  generate    Generate application components
  help        Help about any command
  info        Print diagnostic information (useful for debugging)
  new         Creates a new Buffalo application
  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.
@yokkora

This comment has been minimized.

Copy link
Author

yokkora commented Mar 11, 2019

config/buffalo-plugins.toml is below

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

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

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

This comment has been minimized.

Copy link

af-engineering commented Mar 13, 2019

@yokkora if you delete config/buffalo-plugins.toml does it now work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.