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

Build fails when using db-type mysql #1573

Closed
devonblzx opened this Issue Feb 6, 2019 · 3 comments

Comments

Projects
None yet
4 participants
@devonblzx
Copy link

devonblzx commented Feb 6, 2019

Description

Running Ubuntu 18.04 with golang 1.11.5/modules enabled. A brand new project with db-type of mysql fails to build with database.go:17:27: expected ';', found 'IDENT' url error.

Steps to Reproduce the Problem

$ buffalo new project --db-type=mysql
$ buffalo build
...
ERRO[0010] Error: ...project/a/database.go:17:27: expected ';', found 'IDENT' url

Info

### Buffalo Version
v0.13.13

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

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

### Go Env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/devon/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/devon/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="/home/devon/bessd/code/testbuffalo/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-build331049447=/tmp/go-build -gno-record-gcc-switches"

### Node Version
v10.15.0

### NPM Version
6.4.1

### Yarn Version
1.13.0

### PostgreSQL Version
PostgreSQL Not Found

### MySQL Version
mysql  Ver 14.14 Distrib 5.7.24, for Linux (x86_64) using  EditLine wrapper

### SQLite Version
3.22.0 2018-01-22 18:45:57 0c55d179733b46d8d0ba4d88e01a25e10677046ee3da1d5b1581e86726f2alt1

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

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

### go.mod
module testbuffalo

require (
        github.com/gobuffalo/buffalo v0.13.13
        github.com/gobuffalo/buffalo-plugins v1.13.0 // indirect
        github.com/gobuffalo/buffalo-pop v1.6.0
        github.com/gobuffalo/envy v1.6.12
        github.com/gobuffalo/flect v0.0.0-20190205211104-b2cb381e56e0 // 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.6+incompatible
        github.com/gobuffalo/suite v2.6.0+incompatible
        github.com/jackc/pgx v3.3.0+incompatible // indirect
        github.com/markbates/grift v1.0.5
        github.com/unrolled/secure v0.0.0-20190103195806-76e6d4e9b90c
        golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613 // indirect
        golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3 // indirect
        golang.org/x/sys v0.0.0-20190204203706-41f3e6584952 // indirect
        golang.org/x/tools v0.0.0-20190205201329-379209517ffe // indirect
)
@lukasschlueter

This comment has been minimized.

Copy link
Member

lukasschlueter commented Feb 6, 2019

Most likely there's some special char in your database.yml, maybe the password?

Can you check?

@devonblzx

This comment has been minimized.

Copy link
Author

devonblzx commented Feb 6, 2019

@lukasschlueter I ran into this on my project and reproduced with a blank project, so the database.yml was unchanged. I don't see any malformed values or special chars in the default database.yml.

markbates added a commit that referenced this issue Feb 6, 2019

@markbates markbates added this to the v0.14.0 milestone Feb 7, 2019

@jimhia

This comment has been minimized.

Copy link

jimhia commented Feb 8, 2019

@lukasschlueter The special char is :

`

markbates added a commit that referenced this issue Feb 8, 2019

@markbates markbates closed this Feb 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment