-
Notifications
You must be signed in to change notification settings - Fork 151
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
Adding SQLite support after the fact needs better documentation and doesn't work properly #465
Comments
This could be an issue with you path setup. Can you check that |
If a path setup causes this issue that’s a whole bug of its own |
Buffalo is using plugins for different things, As I could not reproduce this issue on my machine, I can't solve your problem without your help.
Well, this is a bug report after all, isn't it? Also, it's specified as a buffalo requirement:
|
I can't reproduce either, but I believe I know what happened. You reported your second step as The problem stems from the app not being generated initially with [[plugin]]
binary = "buffalo-plugins"
go_get = "github.com/gobuffalo/buffalo-plugins"
tags = ["sqlite"]
[[plugin]]
binary = "buffalo-pop"
go_get = "github.com/gobuffalo/buffalo-pop"
tags = ["sqlite"] The fix would be to either edit your Or you can add it with the buffalo plugins command:
Either should solve your problem. I think the real bug here is some missing documentation. Thanks for letting us know. @lukasschlueter I'm transferring this to the gobuffalo/gobuffalo repo so documentation can be added to the site to talk about how you enable sqlite support after the fact. |
Something wrong with it when running it different ways:
database.yml created with
buffalo-plugins.toml:
buffalo-app.toml:
One line to log success and connection info (/models/models.go[func Init]):
^^^^ ABOVE config are what I know about Buffalo and DB(pop/soda) if I missed sometihng correct me: Afterward: When running it with
BUT RUNNING IT WITH DEBUGGING MODE will behave differently:
ALSO
|
As sugested here:
|
I also have the same problem when trying to run any tests using sqlite:
Running in database.yml:
buffalo-plugins.toml:
buffalo-app.toml:
Would love to know what the trick is to be able to run tests or debug without failing. |
Description
Steps to Reproduce the Problem
$ go get -u -v -tags sqlite github.com/gobuffalo/buffalo/buffalo
$ ~/go/bin/buffalo new test && cd test
v4.10.0
[POP] 2019/04/15 16:05:58 warn - unable to load connection development: could not create new connection: sqlite3 support was not compiled into the binary`
Expected Behavior
[POP] 2019/04/15 16:05:58 info - hey cool things worked and this trivial problem was tested in CI
Actual Behavior
Sqlite3 process per the documentation does not result in sqlite3 support
Info
The text was updated successfully, but these errors were encountered: