jfyne / live-examples

Examples of using jfyne/live

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fiber needs update due to build failure

gedw99 opened this issue · comments

commented
live-examples/fiber && go build .
# github.com/jfyne/live-contrib/livefiber
../../../../../../../../pkg/mod/github.com/jfyne/live-contrib/livefiber@v0.0.0-20220107081735-2eb3c35b606c/template.go:15:18: cannot use func(ctx context.Context, data interface{}) (io.Reader, error) {…} (value of type func(ctx context.Context, data interface{}) (io.Reader, error)) as live.RenderHandler value in argument to h.HandleRender
make: *** [Makefile:24: build] Error 1
commented

Seems to now work:


# upgrade contrib...

git clone git@github.com:jfyne/live-contrib.git

cd live-contrib/livefiber && go install github.com/oligot/go-mod-upgrade@latest && go-mod-upgrade

---


git clone git@github.com:jfyne/live-examples.git

# repoint to the upgraded module locally.. 
cd live-examples && go mod edit -replace github.com/jfyne/live-contrib/livefiber=./../..//live-contrib/livefiber

cd live-examples/fiber &6 go build .