Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This software cannot be built #2

Open
jrebey opened this issue Oct 8, 2019 · 1 comment
Open

This software cannot be built #2

jrebey opened this issue Oct 8, 2019 · 1 comment

Comments

@jrebey
Copy link

jrebey commented Oct 8, 2019

debug.log

@ear
Copy link

ear commented Oct 14, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants