-
-
Notifications
You must be signed in to change notification settings - Fork 361
Replace go-bindata with standard go:embed #610
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
Conversation
Looks great. Thank you for tackling this! Will merge now. |
I have a feeling this change causes building on $ make build
go get -tags='sqlite' -d -v ./...
cd cmd/writefreely; go build -ldflags="-s -w -X 'github.com/writefreely/writefreely.softwareVer=`git describe | cut -c 2-`'" -v -tags='netgo sqlite'
github.com/writefreely/writefreely
# github.com/writefreely/writefreely
../../bindata.go:34:6: schemaSql redeclared in this block
../../app.go:928:5: other declaration of schemaSql
../../bindata.go:52:6: sqliteSql redeclared in this block
../../app.go:931:5: other declaration of sqliteSql
../../bindata.go:121:16: cannot use schemaSql (variable of type string) as type func() (*asset, error) in map literal
../../bindata.go:122:16: cannot use sqliteSql (variable of type string) as type func() (*asset, error) in map literal
../../bindata.go:165:25: cannot use schemaSql (variable of type string) as type func() (*asset, error) in struct literal
../../bindata.go:166:25: cannot use sqliteSql (variable of type string) as type func() (*asset, error) in struct literal
make: *** [build] Error 2 |
@gytisrepecka You shouldn't have a |
Thanks, removing |
No longer needed as of writefreely/writefreely#610 (v0.14)
I just cloned the this repo and tried to run
|
Looks like this PR (all intentions good) was incomplete?
|
Ahh ooops, looks like I forgot I had a clone from years ago 🤦♂️ |
This removes the use of go-bindata for the SQL schema files, in favor of standard go:embed.