live-examples icon indicating copy to clipboard operation
live-examples copied to clipboard

fiber needs update due to build failure

Open gedw99 opened this issue 2 years ago • 1 comments

live-examples/fiber && go build .
# github.com/jfyne/live-contrib/livefiber
../../../../../../../../pkg/mod/github.com/jfyne/live-contrib/[email protected]/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

gedw99 avatar Apr 11 '23 13:04 gedw99

Seems to now work:


# upgrade contrib...

git clone [email protected]:jfyne/live-contrib.git

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

---


git clone [email protected]: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 .

gedw99 avatar Apr 11 '23 13:04 gedw99