Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Unable to work with POP #1501

Closed
vikram-rawat opened this issue Dec 10, 2018 · 4 comments
Closed

Unable to work with POP #1501

vikram-rawat opened this issue Dec 10, 2018 · 4 comments
Labels
environmental The problem is with the OP's environment help wanted Feel free to contribute!

Comments

@vikram-rawat
Copy link

PS C:\Projects\src\mtk> buffalo db create
←[31mERRO←[0m[0005] 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.

I get this error when I try to create databases inside mtk.

I tried to reinstall the package and I got so many errors I don't know where to start. I am pasting the entire log. Please at least skim through it.

PS C:\Projects\src> go get -u -v github.com/gobuffalo/buffalo-pop
github.com/gobuffalo/buffalo-pop (download)
github.com/gobuffalo/buffalo-plugins (download)
github.com/BurntSushi/toml (download)
github.com/gobuffalo/meta (download)
github.com/gobuffalo/envy (download)
github.com/joho/godotenv (download)
github.com/rogpeppe/go-internal (download)
github.com/gobuffalo/flect (download)
github.com/markbates/oncer (download)
github.com/pkg/errors (download)
github.com/karrick/godirwalk (download)
github.com/sirupsen/logrus (download)
github.com/konsorten/go-windows-terminal-sequences (download)
github.com/spf13/cobra (download)
github.com/inconshreveable/mousetrap (download)
github.com/spf13/pflag (download)
github.com/fatih/color (download)
github.com/gobuffalo/buffalo (download)
github.com/dustin/go-humanize (download)
github.com/gobuffalo/pop (download)
github.com/gobuffalo/uuid (download)
github.com/gofrs/uuid (download)
github.com/gobuffalo/x (download)
github.com/monoculum/formam (download)
github.com/gobuffalo/github_flavored_markdown (download)
github.com/sergi/go-diff (download)
github.com/sourcegraph/annotate (download)
github.com/sourcegraph/syntaxhighlight (download)
Fetching https://golang.org/x/net/html?go-get=1
Parsing meta tags from https://golang.org/x/net/html?go-get=1 (status code 200)
get "golang.org/x/net/html": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/html?go-get=1
get "golang.org/x/net/html": verifying non-authoritative meta tag
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
golang.org/x/net (download)
Fetching https://golang.org/x/net/html/atom?go-get=1
Parsing meta tags from https://golang.org/x/net/html/atom?go-get=1 (status code 200)
get "golang.org/x/net/html/atom": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/html/atom?go-get=1
get "golang.org/x/net/html/atom": verifying non-authoritative meta tag
github.com/microcosm-cc/bluemonday (download)
github.com/gobuffalo/packd (download)
github.com/gobuffalo/syncx (download)
github.com/gobuffalo/plush (download)
github.com/gobuffalo/tags (download)
github.com/fatih/structs (download)
github.com/gobuffalo/validate (download)
github.com/serenize/snaker (download)
github.com/markbates/inflect (download)
github.com/gobuffalo/events (download)
github.com/gobuffalo/mapi (download)
github.com/markbates/safe (download)
github.com/cockroachdb/cockroach-go (download)
github.com/jackc/pgx (download)
github.com/lib/pq (download)
github.com/go-sql-driver/mysql (download)
github.com/gobuffalo/fizz (download)
github.com/kballard/go-shellquote (download)
github.com/blang/semver (download)
github.com/gobuffalo/makr (download)
github.com/jmoiron/sqlx (download)
github.com/markbates/going (download)
Fetching https://golang.org/x/sync/errgroup?go-get=1
Parsing meta tags from https://golang.org/x/sync/errgroup?go-get=1 (status code 200)
get "golang.org/x/sync/errgroup": found meta tag get.metaImport{Prefix:"golang.org/x/sync", VCS:"git", RepoRoot:"https://go.googlesource.com/sync"} at https://golang.org/x/sync/errgroup?go-get=1
get "golang.org/x/sync/errgroup": verifying non-authoritative meta tag
Fetching https://golang.org/x/sync?go-get=1
Parsing meta tags from https://golang.org/x/sync?go-get=1 (status code 200)
golang.org/x/sync (download)
Fetching https://gopkg.in/yaml.v2?go-get=1
Parsing meta tags from https://gopkg.in/yaml.v2?go-get=1 (status code 200)
get "gopkg.in/yaml.v2": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at https://gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)
github.com/gorilla/context (download)
github.com/gorilla/mux (download)
github.com/gorilla/sessions (download)
github.com/gorilla/securecookie (download)
github.com/markbates/grift (download)
github.com/markbates/refresh (download)
github.com/fsnotify/fsnotify (download)
github.com/gobuffalo/genny (download)
github.com/gobuffalo/logger (download)
Fetching https://golang.org/x/crypto/ssh/terminal?go-get=1
Parsing meta tags from https://golang.org/x/crypto/ssh/terminal?go-get=1 (status code 200)
get "golang.org/x/crypto/ssh/terminal": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/ssh/terminal?go-get=1
get "golang.org/x/crypto/ssh/terminal": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
Fetching https://golang.org/x/sys/windows?go-get=1
Parsing meta tags from https://golang.org/x/sys/windows?go-get=1 (status code 200)
get "golang.org/x/sys/windows": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/windows?go-get=1
get "golang.org/x/sys/windows": verifying non-authoritative meta tag
Fetching https://golang.org/x/sys?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
golang.org/x/sys (download)
github.com/mitchellh/go-homedir (download)
github.com/markbates/sigtx (download)
Fetching https://golang.org/x/crypto/bcrypt?go-get=1
Parsing meta tags from https://golang.org/x/crypto/bcrypt?go-get=1 (status code 200)
get "golang.org/x/crypto/bcrypt": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/bcrypt?go-get=1
get "golang.org/x/crypto/bcrypt": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto/blowfish?go-get=1
Parsing meta tags from https://golang.org/x/crypto/blowfish?go-get=1 (status code 200)
get "golang.org/x/crypto/blowfish": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/blowfish?go-get=1
get "golang.org/x/crypto/blowfish": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools/imports?go-get=1
Parsing meta tags from https://golang.org/x/tools/imports?go-get=1 (status code 200)
get "golang.org/x/tools/imports": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/imports?go-get=1
get "golang.org/x/tools/imports": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
golang.org/x/tools (download)
Fetching https://golang.org/x/tools/go/ast/astutil?go-get=1
Parsing meta tags from https://golang.org/x/tools/go/ast/astutil?go-get=1 (status code 200)
get "golang.org/x/tools/go/ast/astutil": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/go/ast/astutil?go-get=1
get "golang.org/x/tools/go/ast/astutil": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools/internal/gopathwalk?go-get=1
Parsing meta tags from https://golang.org/x/tools/internal/gopathwalk?go-get=1 (status code 200)
get "golang.org/x/tools/internal/gopathwalk": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/internal/gopathwalk?go-get=1
get "golang.org/x/tools/internal/gopathwalk": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools/internal/fastwalk?go-get=1
Parsing meta tags from https://golang.org/x/tools/internal/fastwalk?go-get=1 (status code 200)
get "golang.org/x/tools/internal/fastwalk": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/internal/fastwalk?go-get=1
get "golang.org/x/tools/internal/fastwalk": verifying non-authoritative meta tag
github.com/gobuffalo/packr (download)
github.com/gobuffalo/flect
github.com/gobuffalo/buffalo-pop/cmd/destroy
github.com/gobuffalo/flect/name
github.com/gobuffalo/pop/associations
github.com/gobuffalo/tags/form
github.com/gobuffalo/tags/form/bootstrap
github.com/gobuffalo/pop
github.com/gobuffalo/pop/soda/cmd/generate
github.com/gobuffalo/buffalo-pop/pop
github.com/gobuffalo/buffalo-pop/cmd
github.com/gobuffalo/buffalo-pop

Now I don't know what to do. I even reinstalled the entire application through scoop (after installing scoop). I even install gcc. But I don't know how to fix it. Please do reply.

@markbates markbates added help wanted Feel free to contribute! environmental The problem is with the OP's environment labels Dec 10, 2018
@lukasschlueter
Copy link
Contributor

Does running buffalo pop create instead work?

If it doesn't, running soda create or buffalo-pop pop create should be working until a fix exists.
In that case, please also include the output of buffalo info.

The log you provided does not show any obvious error (or I didn't see them on the mobile screen). The information on meta tags seems to be quite normal.

@vikram-rawat
Copy link
Author

buffalo pop create didn't work

image

##buffalo-pop pop create did work

image

This is the result of buffalo info. Please let me know if you need anything from me. I need it fixed please because I am trying to learn it and it's already very hard to understand what command does what. I have to search google for almost every next command now if they won't work. I will not be able to figure out if I am the one doing something wrong or the problem is in the tool.

Please fix this .

PS C:\Projects\src\mtk> buffalo info
### Buffalo Version
v0.13.10

### App Information
Pwd=C:\Projects\src\mtk
Root=C:\Projects\src\mtk
GoPath=c:\projects
Name=mtk
Bin=bin\mtk.exe
PackagePkg=mtk
ActionsPkg=mtk/actions
ModelsPkg=mtk/models
GriftsPkg=mtk/grifts
VCS=git
WithPop=true
WithSQLite=false
WithDep=false
WithWebpack=true
WithYarn=true
WithDocker=true
WithGrifts=true
WithModules=false

### Go Version
go version go1.11.2 windows/amd64

### Go Env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\abc\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=c:\projects
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 -fmessage-length=0 -fdebug-prefix-map=C:\Users\abc\AppData\Local\Temp\go-build053890638=/tmp/go-build -gno-record-gcc-switches

### Node Version
v10.13.0

### NPM Version
6.4.1

### Yarn Version
1.12.3

### 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

### go.mod
module mtk

@vikram-rawat
Copy link
Author

image

This command doesn't work as well. though generate model did work but destroy didn't do anything. infact it didn't even recognize the command.

image

Please update the documentation. I am already new to development and simple commands not working create a self doubt.

@lukasschlueter
Copy link
Contributor

Yes, that's correct. soda appears to not include the destroy command while buffalo-pop does.

As stated in the docs, you should use buffalo pop (or buffalo-pop pop if that's not working) instead of soda, that should resolve the problem.

A fix for the initial problem shoud have been implemented in buffalo-plugins v1.0.9 (gobuffalo/buffalo-plugins@96a6b47).

I also created gobuffalo/docs#416 for the soda destroy part.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
environmental The problem is with the OP's environment help wanted Feel free to contribute!
Projects
None yet
Development

No branches or pull requests

3 participants