examples icon indicating copy to clipboard operation
examples copied to clipboard

Running booking example throws build error

Open mjbedford opened this issue 4 years ago • 2 comments

I have cloned the examples in to my src github but when I try and run the booking example I get the following error

ERROR 13:16:41 harness.go:239: Build detected an error error="Go Compilation Error (in ../../../../../pkg/mod/github.com/revel/[email protected]/orm/gorp/app/dbgorp.go:7): no matching versions for query "latest""

Error compiling code, to view error details see proxy running on http://0.0.0.0:9000

Time to recompile 2.102759448s Any ideas how to fix this

Thanks

BTW the other examples throw even more errors

mjbedford avatar Oct 08 '20 12:10 mjbedford

I get this error too... Any suggestions...?

mr-klaatu avatar Nov 04 '20 09:11 mr-klaatu

Hi, I got it up and running by changing the lines from go.mod github.com/revel/modules v0.21.0 github.com/revel/revel v0.21.0 to github.com/revel/modules v1.0.0 github.com/revel/revel v1.0.0

Hope that can help.

I tested the example in a Docker container with golang:1.15.5-alpine and had to add a build-base package which includes gcc. RUN apk update && apk upgrade && apk add --no-cache bash git build-base

randree avatar Nov 18 '20 16:11 randree