cockroachdb / cockroachdb/cockroach
Unable to work on local repository version of gogo-protobuf
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
**Describe the problem**
I would like to create a local repository for gogo-protobuf instead of working with the remote version available at https://github.com/gogo/protobuf.
**To Reproduce**
What did you do? Describe in your own words.
If possible, provide steps to reproduce the behavior:
1- After forking the Cockroach GitHub repository, I successfully built and ran it on my local MacBook Pro.
2- I also forked the repository at https://github.com/gogo/protobuf.
3- echo 'build --override_repository=com_github_gogo_protobuf=/Users/salemalqahtani/Desktop/src/Juicer/salemdis/protobuf' >> .bazelrc.user
4- Inside the /Users/salemalqahtani/Desktop/src/Juicer/salemdis/protobuf, I completed the following tasks:
1- Create an empty WORKSPACE file.
2- gazelle -go_prefix=github.com/salemmohammed/protobuf -repo_root=. (This resulted in a BUILD.bazel file being generated in every directory.)
3- bazel clean --expunge
4- bazel run //:gazelle
5- ./dev build
The error after step five:
ERROR: /private/var/tmp/_bazel_salemalqahtani/076832ea6f24c2ac9a2f0c64b3726f59/external/com_github_gogo_protobuf/jsonpb/BUILD.bazel:3:11: no such target '@com_github_gogo_protobuf//types:go_default_library': target 'go_default_library' not declared in package 'types' defined by /private/var/tmp/_bazel_salemalqahtani/076832ea6f24c2ac9a2f0c64b3726f59/external/com_github_gogo_protobuf/types/BUILD.bazel and referenced by '@com_github_gogo_protobuf//jsonpb:jsonpb'
Can you please help me?
Thanks all!
Jira issue: CRDB-30536
Contributor guide
Assessment
This issue has not been assessed yet.