schollz / cowyo

A feature-rich wiki webserver for minimalists :cow: :speech_balloon:
https://cowyo.com/
MIT License
920 stars 69 forks source link

Build failing on FreeBSD 11.2 #141

Open vendion opened 5 years ago

vendion commented 5 years ago

Attempting to build from source on FreeBSD 11.2 (since no precompiled binaries are available) errors out on NewCookieStore

$ go get -u github.com/schollz/cowyo/...
# github.com/schollz/cowyo/cmd/herdyo
go/src/github.com/schollz/cowyo/cmd/herdyo/herdyo.go:12:11: undefined: "github.com/schollz/cowyo/vendor/github.com/gin-contrib/sessions".NewCookieStore
# github.com/schollz/cowyo/config
go/src/github.com/schollz/cowyo/config/http.go:82:10: undefined: "github.com/schollz/cowyo/vendor/github.com/gin-contrib/sessions".NewCookieStore
$ go version
go version go1.10.3 freebsd/amd64
schollz commented 5 years ago

Whoops, its a API change in sessions. Should be fixed now.

vendion commented 5 years ago

Well almost, seems there maybe more changes than just that sadly

go get -u github.com/schollz/cowyo/...
# github.com/schollz/cowyo/config
go/src/github.com/schollz/cowyo/config/http.go:82:10: undefined: "github.com/schollz/cowyo/vendor/github.com/gin-contrib/sessions".NewStore
# github.com/schollz/cowyo/cmd/herdyo
go/src/github.com/schollz/cowyo/cmd/herdyo/herdyo.go:12:11: undefined: "github.com/schollz/cowyo/vendor/github.com/gin-contrib/sessions".NewStore
schollz commented 5 years ago

Okay, I updated the vendors too, try now!

vendion commented 5 years ago

Hmmm... this is the first time I've seen something like this happen, if I have go get fetch and build everything it still fails to find github.com/schollz/cowyo/vendor/github.com/gin-contrib/sessions.NewStore, but if I pass the -d argument to go get and cd into $GOPATH/src/github.com/schollz/cowyo and build it manually it works.