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

Cannot build ratel. #91

Closed
martinmr opened this issue Jul 12, 2019 · 6 comments
Closed

Cannot build ratel. #91

martinmr opened this issue Jul 12, 2019 · 6 comments

Comments

@martinmr
Copy link
Contributor

Trying to run the build script but I am getting this error when the script gets to building the server:

github.com/dgraph-io/ratel (download)
github.com/dgraph-io/ratel/server
# github.com/dgraph-io/ratel/server
server/server.go:69:13: undefined: Asset
server/server.go:77:13: undefined: Asset
server/server.go:82:15: undefined: AssetInfo
server/server.go:124:14: undefined: Asset
server/server.go:130:16: undefined: AssetInfo
@martinmr
Copy link
Contributor Author

I get the same error when I go to that folder and run go get.

@paulftw
Copy link
Contributor

paulftw commented Jul 13, 2019

Yes, it's setup in a counterintuitive way, I too struggled first time I tried to build the go part.

Do you have ratel/server/bindata.go in you working directory?
If not something went wrong while running the build script. were there any error messages?

@martinmr
Copy link
Contributor Author

I see the bindata.go file but it's still failing to build.

@martinmr
Copy link
Contributor Author

martinmr commented Aug 9, 2019

Found the reason for this. I originally cloned ratel to fix some issue on the javascript code. So I was trying to build it from outside the gopath and ratel was not installed in the gopath.

@martinmr martinmr closed this as completed Aug 9, 2019
@smeadows-abb
Copy link

I'm having the same issue. How did you fix this?

@paulftw
Copy link
Contributor

paulftw commented May 6, 2020

@smeadows-abb undefined: Asset used to be a symptom of missing go-bindata. Other thing Martin has mentioned is having to build Ratel from inside $GOPATH.

In my case working folder for ratel is ~/go/src/github.com/dgraph-io/ratel.

Feel free to ping me on Dgraph Community Slack if you need help troubleshooting this, my slack handle there is same as my Github handle.
Users sometimes mention this build issue, but I couldn't reproduce it yet and still looking for an automatic way to detect and/or fix it.

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

No branches or pull requests

3 participants