Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information