Closed tcurdt closed 3 years ago
I had this same issue. It appears that the Homebrew version doesn't ship with the sqlite support. You need to install buffalo using go get
instead, which is documented in the buffalo docs. However, doing it this way wasn't installing the buffalo binary in my PATH. Turns out this was because I didn't have GO111MODULE
set to on
. I had it on auto
, which I believe is the current default. So here are the steps I ran to get it working.
brew uninstall gobuffalo/tap/pop
brew uninstall gobuffalo/tap/buffalo
echo "export GO111MODULE=on" >> ~/.bashrc
. ~/.bashrc
go get -u -v -tags sqlite github.com/gobuffalo/buffalo/buffalo
# if you want the soda CLI as well, run the following...
# go get -u -v -tags sqlite github.com/gobuffalo/pop/...
# go install -tags sqlite github.com/gobuffalo/pop/soda
I was under the impression GO111MODULE
is no longer required - interesting.
But either way - this should be fixed in the docs.
And the homebrew version should either come with sqlite by default or allow for a build flag.
Yeah I didn't think it was required either. 🤷♂
Yeah the Homebrew formula should probably be updated, but it looks like the formula is just downloading prebuilt binaries. None of the prebuilt binaries on Github have sqlite3 support, at least it doesn't look like it with how they are labelled. So the binaries they supply would probably need to be updated as well.
I too set the GO111MODULE=0 in my .bashrc before running "go get":
go get -u -v -tags sqlite github.com/gobuffalo/buffalo/buffalo
Without setting GO111MODULE=0, the above go command issues dozens of errors in the terminal output. With the GO111MODULE=0 the above command didn't give a single error.
Then when I do:
buffalo new myapp --db-type sqlite
I get this error:
ERRO[0000] Error: unknown dialect "sqlite" expecting one of cockroach, mariadb, mysql, postgres
I thought sqlite was supported. I followed the installation instructions for including sqlite. Obviously I'm misunderstanding something.
Thanks for any insight you can provide, Bill
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Description
Since I had problem with an existing project I thought I try a new one.
Steps to Reproduce the Problem
Expected Behavior
It should generate the app skeleton.
Actual Behavior
It seems like the homebrew release does not come with sqlite support.
Info