Azareal / Gosora

Gosora is an ultra-fast and secure forum software written in Go that balances usability with functionality.
https://gosora-project.com/
GNU General Public License v3.0
164 stars 16 forks source link

Build Error #61

Closed mzch closed 4 years ago

mzch commented 4 years ago

I did ./pre-run-linux, then my compiler reported an error as below:

# github.com/Azareal/Gosora/routes
routes/forum.go:117:52: wsTopicList(topicList, lastPage).MarshalJSON undefined (type *common.WsTopicList has no field or method MarshalJSON)
routes/topic_list.go:160:63: wsTopicList(topicList, paginator.LastPage).MarshalJSON undefined (type *common.WsTopicList has no field or method MarshalJSON)
routes/topic_list.go:189:62: wsTopicList(topicList, paginator.LastPage).MarshalJSON undefined (type *common.WsTopicList has no field or method MarshalJSON)

Go: go version go1.11.6 linux/amd64 OS: Debian 10

When checking out 0.2.0 and doing ./install-linux, then as below:

Installing the dependencies
./install-linux: line 3: easyjson: command not found
# github.com/Azareal/Gosora/routes
routes/forum.go:117:52: wsTopicList(topicList, lastPage).MarshalJSON undefined (type *common.WsTopicList has no field or method MarshalJSON)
routes/topic_list.go:156:63: wsTopicList(topicList, paginator.LastPage).MarshalJSON undefined (type *common.WsTopicList has no field or method MarshalJSON)
routes/topic_list.go:185:62: wsTopicList(topicList, paginator.LastPage).MarshalJSON undefined (type *common.WsTopicList has no field or method MarshalJSON)
Building the installer
Running the installer
./install-linux: line 10: ./Installer: Permission denied
mzch commented 4 years ago

Sorry, when I gitted clone again, gave all shell scripts and reran, all things are OK.

Azareal commented 4 years ago

There are some issues with EasyJSON and Go 1.11.

Due to that and the issue with image/tiff, I have bumped the requirements up-to Go 1.12 or higher. Unfortunately, you might have been caught before I updated the README, sorry.

mzch commented 4 years ago

Oh, Go is surely 1.11. OK, thanks!