Error while building Writefreely #727
-
Hello! # github.com/writefreely/writefreely
./bindata.go:81:6: schemaSql redeclared in this block
./app.go:928:5: other declaration of schemaSql
./bindata.go:101:6: sqliteSql redeclared in this block
./app.go:931:5: other declaration of sqliteSql
./bindata.go:203:16: cannot use schemaSql (variable of type string) as func() (*asset, error) value in map literal
./bindata.go:204:16: cannot use sqliteSql (variable of type string) as func() (*asset, error) value in map literal
./bindata.go:253:17: cannot use schemaSql (variable of type string) as func() (*asset, error) value in struct literal
./bindata.go:254:17: cannot use sqliteSql (variable of type string) as func() (*asset, error) value in struct literal I'm using go 1.20 on MacOS environment. Any ideas? I'm like a novice in Go btw, so sorry if this is dumb question for pro) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I found a solution. Just change function names in And change all of calling those functions inside I also found several mistakes in "Development setup" article here (maybe it is do not mistakes because I used macos): https://writefreely.org/docs/latest/developer/setup |
Beta Was this translation helpful? Give feedback.
-
@itbeard You shouldn't have to edit the code to get it to build. Did you manage to build it in the end without those edits? Also, where is bindata.go?? |
Beta Was this translation helpful? Give feedback.
I found a solution. Just change function names in
bindata.go
func schemaSql()
->func schemaSql1()
func sqliteSql()
->func sqliteSql1()
And change all of calling those functions inside
bindata.go
I also found several mistakes in "Development setup" article here (maybe it is do not mistakes because I used macos): https://writefreely.org/docs/latest/developer/setup
Do I need to post info about it here?