-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to run the GUI ? #5
Comments
It looks like the embedded files in func usersAppleWorkspaceGoSrcGithubComCtessumCityaqGuiHtmlIndexHtmlBytes() ([]byte, error) {
return bindataRead(
_usersAppleWorkspaceGoSrcGithubComCtessumCityaqGuiHtmlIndexHtml,
"Users/apple/workspace/go/src/github.com/ctessum/cityaq/gui/html/index.html",
)
} However, the program is expecting It looks like the root of the problem has to do with using Now that I've actually tested it, the makefile doesn't work at all for me, because I don't keep the code in $GOPATH (with modules, that isn't necessary or even recommended, as far as I know). So is there a way that we can change the makefile to use relative paths? |
thanks for looking into this. One thing that does not make sense of the top of my head is that the whole point of go modules is that the path on disk has no effect. So it should not matter where it is compiled from on the disk. The go.mod is the one that essentially declares that this code relates to this golang namespace. LIB_FSPATH is just a thing i tend to do for projects. We can remove it as we have a makefile in the root of the code now. Also about the assets.go. Yep your right. To me that is just a bad design, and we should change to using an embedder that is NOT absolute path based. thoughts ? Correction: we just have to tell go-bindata to strip the paths prefix ? https://github.com/go-bindata/go-bindata#path-prefix-stripping |
That makes sense. Although, I don't think go-bindata normally uses absolute directories. I think it's some sort of interaction with the way it's called in the makefile, because it worked fine before. So that's why I suspect that removing LIB_FSPATH may fix the problem. This could be a longer-term fix: https://go.googlesource.com/proposal/+/master/design/draft-embed.md. But it's not ready yet I don't think. |
fixed with #6 Yes your were right.. Just get rid of the absolute path and all is well. Sorry about that.. I ran the server and the Browser worked for me. Did not test further though as i was in a rush to just get it all holding together on a Sunday. On Monday will start to actually explore the way things really work more. |
Am trying to work on the github actions for local and github builds.
I build with make build.
But am having trouble running the system itself.
Neither paths in the browser work for me:
https://localhost:10000/index.html
https://localhost:10000/gui/html
Any tips ?
The text was updated successfully, but these errors were encountered: