forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: delete a bunch of generated go code from tree
Before this change, `dev build --hoist-generated-code` would introduce a lot of spurious, benign diffs in generated code. I've validated that you can `dev build --hoist-generated code` without introducing any diffs with this change applied. The code we're deleting from tree here is: * *ALL* `.pb.go` and `.pb.gw.go` files; * and an ad-hoc selection of generated files that cannot be hoisted into the worktree by `dev` without introducing diffs (see cockroachdb#72232). My first attempt at solving this problem was by deleting "all" generated code from tree but I quickly found that this was intractable: the large majority of these generated files don't have bespoke support in the `Makefile`, so deleting them from tree and running `make build` just causes the build to fail. Instead, the approach here is more targeted: I delete only the generated files that have diffs when hoisted by `dev`, and add support in the `Makefile` for those specific generated files. The remaining checked-in generated files aren't hurting anyone, and can be deleted from tree wholesale after `make` is dead. NB: This change can require running `make generate` (or, in certain more constrained scenarios, `make protobuf`) to make some builds/tests work. Closes cockroachdb#72232. Release note: None
- Loading branch information
1 parent
bff20e4
commit ff4cf77
Showing
129 changed files
with
44 additions
and
358,012 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
*.pb.* -diff | ||
*.eg.go -diff | ||
pkg/BUILD.bazel -diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Bump this counter to force rebuilding all protos. | ||
1 |
Oops, something went wrong.