-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
72675: *: delete a bunch of generated go code from tree r=irfansharif a=rickystewart 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 #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 #72232. Release note: None 74210: sql: deprecate GRANT privilege r=jackcwu a=jackcwu Resolves #73065 Release note (sql change): We will be deprecating the GRANT privilege in 22.1 before eventually removing it in 22.2 in favor of grant options. To promote backwards compatibility for users with code still using GRANT, we will give grant options on every privilege a user has when they are granted GRANT and remove all their grant options when GRANT is revoked, in addition to the existing grant option behavior. Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Jack Wu <[email protected]>
- Loading branch information
Showing
140 changed files
with
845 additions
and
358,354 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.