Closed RaduBerinde closed 6 days ago
I'm a little weary of having to run make gen-bazel
every time some imports change.. I wonder if there's a better way.
I will try something a little different - instead of checking in the new files, I will add them to .gitignore
and we can run make gen-bazel
only when we need to use it as a dependency. That way generating the files won't interfere with the commits on that branch.
Updated to add just a new target and .gitignore
the bazel files.
TFTRs!
This change adds a
gen-bazel
target which generates aWORKSPACE
file and runs gazelle to generateBUILD.bazel
files. Generating these files allows a local clone of the repository to be used directly when building Cockroach using theoverride_repository
flag, for example:The new files are added to
.gitignore
so that generating them doesn't interfere with commits.We also add a
clean-bazel
target that cleans up these files (useful when switching back to an older branch)