sqliteweb icon indicating copy to clipboard operation
sqliteweb copied to clipboard

This software cannot be built

Open jrebey opened this issue 4 years ago • 1 comments

debug.log

jrebey avatar Oct 08 '19 16:10 jrebey

@jrebey I found a way to get it going.

The dependency "gulp-sass": "~0.7.2" recursively depends on "node-sass": "0.9.6".

node-sass versions are tied to node versions.

I tried switching to a newer version, "gulp-sass": "~4.0.2", the latest at this time and the dependence has been upgraded to node-sass 4.12.0 which compiles just fine on my node v8.10.0.

You'll then incur into the problem that Godeps is deprecated and need to turn the sqliteweb-server package into a Go Module as described here:

~/sqliteweb/sqliteweb-server$ go mod init github.com/hypebeast/sqliteweb/sqliteweb-server
go: creating new go.mod: module github.com/hypebeast/sqliteweb/sqliteweb-server
go: copying requirements from Godeps/Godeps.json
~/sqliteweb/sqliteweb-server$ rm -rf Godeps/
~/sqliteweb/sqliteweb-server$ ls
controllers  go.mod  lib  main.go  Makefile  static

At this point it doesn't build cleanly yet. It needs to have access go go-bindata which must be installed separately:

~/sqliteweb/sqliteweb-server$ go install -v github.com/jteeuwen/go-bindata/go-bindata
go: finding github.com/jteeuwen/go-bindata/go-bindata latest
github.com/jteeuwen/go-bindata
github.com/jteeuwen/go-bindata/go-bindata
~/sqliteweb/sqliteweb-server$ make bindata
go-bindata -o ./assets.go static/...
...

Now we can use the Makefile @hypebeast has written successfully:

~/sqliteweb/sqliteweb-server$ make build
go-bindata -o ./assets.go static/...
go build -o sqliteweb .
You can now execute ./sqliteweb

The rest works as advertised.

ear avatar Oct 14 '19 10:10 ear