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

unexpected dependency "go-sqlite3" #1849

Open
intuxicated opened this issue Nov 24, 2019 · 0 comments
Open

unexpected dependency "go-sqlite3" #1849

intuxicated opened this issue Nov 24, 2019 · 0 comments

Comments

@intuxicated
Copy link

@intuxicated intuxicated commented Nov 24, 2019

Description

It seems like that buffalo has a dependency on github.com/mattn/go-sqlite3 even when using postgres as the database driver.

System

$ echo $OS
OSX

$ go version
go version go1.13.4 darwin/amd64

$ buffalo version
INFO[0001] Buffalo version is: v0.15.1

Steps to Reproduce the Problem

$ buffalo new routes-error --api --db-type postgres
DEBU[2019-11-24T13:00:03+11:00] Step: a55567d5
...
INFO[2019-11-24T13:00:07+11:00] Congratulations! Your application, routes-error, has been successfully built!

$ cd routes_error

Expected Behavior

buffalo routes should be able to print routes

$ buffalo routes
METHOD | PATH | ALIASES | NAME     | HANDLER
------ | ---- | ------- | ----     | -------
GET    | /    |         | rootPath | path/to/routes_error/actions.HomeHandler

Actual Behavior

buffalo routes complains about missing dependency github.com/mattn/go-sqlite3

$ buffalo routes
../../../github.com/gobuffalo/pop/dialect_sqlite.go:20:2: cannot find package "github.com/mattn/go-sqlite3" in any of:
	/usr/local/Cellar/go/1.13.4/libexec/src/github.com/mattn/go-sqlite3 (from $GOROOT)
	/HOME_DIR/GOROOT_DIR/src/github.com/mattn/go-sqlite3 (from $GOPATH)
Usage:
  buffalo routes [flags]

Flags:
  -h, --help   help for routes

ERRO[0001] Error: exit status 1

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

-> Go: Checking GOPATH
✓ You appear to be operating inside of your GOPATH.

-> Go: Checking Package Management
⚠ You do not appear to be using a package management system.

It is strongly suggested that you use one of the following package management systems:

* Go Modules (Recommended) - https://gobuffalo.io/en/docs/gomods
* Dep - https://github.com/golang/dep

For help setting up your Go environment please follow the instructions for you platform at:

https://www.gopherguides.com/courses/preparing-your-environment-for-go-development

-> Go: Checking PATH
✘ Your PATH (/HOME_DIR/.rbenv/shims:/HOME_DIR/.rbenv/shims:/HOME_DIR/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin) does not contain /HOME_DIR//GOROOT_DIR//bin.

Without /HOME_DIR//GOROOT_DIR//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, 11.5.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.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.1, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /HOME_DIR//GOROOT_DIR/src/gitlab.com/user/routes_error
Root        /HOME_DIR//GOROOT_DIR/src/gitlab.com/user/routes_error
GoPath      /HOME_DIR//GOROOT_DIR/
PackagePkg  gitlab.com/user/routes_error
ActionsPkg  gitlab.com/user/routes_error/actions
ModelsPkg   gitlab.com/user/routes_error/models
GriftsPkg   gitlab.com/user/routes_error/grifts
WithModules false
Name        routes-error
Bin         bin/routes-error
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 = "routes-error"
bin = "bin/routes-error"
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.