-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
build: undefined: reservedKeywords #23583
Comments
@nicolasStevenin we use a non-trivial amount of code-generation in our build process, including, in the case of the error you hit, generating code based on our yacc-defined SQL grammar. The generated files are maintained by our Makefile, so you need to run |
@nicolasStevenin as David explained, CockroachDB does not support Can you report on the status of this issue on your side? We'd love to know how we can help further. |
The root package, github.com/cockroachdb/cockroach, previously served as the main entry point for the default CCL binary. This meant that naively running $ go get github.com/cockroachdb/cockroach would fail with cryptic errors about missing "reserved keywords", as our build requires generating some Go code via Make. Our documentation suggests that users instead run $ go get -d github.com/cockroachdb/cockroach $ make but many users, somewhat understandably, fail to read that documentation. Move the main entry point to ./pkg/cmd/cockroach. Running 'go get github.com/cockroachdb/cockroach' will now produce a less confusing error that reads: can't load package: package github.com/cockroachdb/cockroach: no Go files in GOPATH/src/github.com/cockroachdb/cockroach Hopefully this spurs users to read the build instructions. (Running 'go get github.com/cockroachdb/cockroach/pkg/cmd/cockroach' still produces the same cryptic error messages as before, but users are far less likely to construct that 'go get' invocation.) Fix cockroachdb#23583. Release note: None
25325: build: make 'go get github.com/cockroachdb/cockroach' fail r=bdarnell a=benesch The root package, github.com/cockroachdb/cockroach, previously served as the main entry point for the default CCL binary. This meant that naively running $ go get github.com/cockroachdb/cockroach would fail with cryptic errors about missing "reserved keywords", as our build requires generating some Go code via Make. Our documentation suggests that users instead run $ go get -d github.com/cockroachdb/cockroach $ make but many users, somewhat understandably, fail to read that documentation. Move the main entry point to ./pkg/cmd/cockroach. Running 'go get github.com/cockroachdb/cockroach' will now produce a less confusing error that reads: can't load package: package github.com/cockroachdb/cockroach: no Go files in GOPATH/src/github.com/cockroachdb/cockroach Hopefully this spurs users to read the build instructions. (Running 'go get github.com/cockroachdb/cockroach/pkg/cmd/cockroach' still produces the same cryptic error messages as before, but users are far less likely to construct that 'go get' invocation.) Fix #23583. Fix #23992. Release note: None Co-authored-by: Nikhil Benesch <[email protected]>
Hi,
I try to build and test your project and it fails with :
Testing: "/builddir/build/BUILD/cockroach-2.0-beta.20180305/_build/src/github.com/cockroachdb/cockroach/pkg/sql/opt/opt"
github.com/cockroachdb/cockroach/pkg/sql/lex
../../lex/predicates.go:60:14: undefined: reservedKeywords
FAIL github.com/cockroachdb/cockroach/pkg/sql/opt/opt [build failed]
Could you help me please ?
Thanks
The text was updated successfully, but these errors were encountered: