-
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: pkg/sql/lex/predicates.go:60:14: undefined: reservedKeywords #23992
Comments
How are you trying to build cockroach? You need to use |
ah, drat, I need to pass specific flags to the go parameters for the QA guys, and go flag passing is whoefully under-standardised and a PITA in general Do you have a make target that does everything needing to be done outside the go toolchain? |
Just run |
Will try it, thanks! |
Tools used: go version go1.10.1 linux/amd64
And finally the error:
This is on release-2.0 HEAD at the moment (3e44219) |
@nim-nim we have made large improvements to our build system to avoid this class of errors. Could you check again and confirm the problem has been resolved? |
@benesch did your PR for this make it through? |
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]>
With:
While trying to build:
The text was updated successfully, but these errors were encountered: