Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel: glob-exclude all *_generated.go files from Gazelle #72099

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

rickystewart
Copy link
Collaborator

@rickystewart rickystewart commented Oct 28, 2021

This review is only for the second commit in the stack; the other is from #72098.

This will help ensure that Gazelle doesn't accidentally reference
checked-in generated code.

The generated code in pkg/col/colserde/arrowserde is made by flatc,
the FlatBuffers compiler -- I tried to make a genrule to generate this
code but the code that flatc generates now doesn't match up to what's
checked in (maybe we used a different version of flatc for the
original version of the code?)

Closes #72096.

Release note: None

@rickystewart rickystewart requested a review from rail October 28, 2021 15:44
@rickystewart rickystewart requested review from a team as code owners October 28, 2021 15:44
@rickystewart rickystewart requested review from srosenberg and removed request for a team October 28, 2021 15:44
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rickystewart rickystewart removed request for rail, a team and srosenberg October 28, 2021 15:46
@rickystewart rickystewart added the do-not-merge bors won't merge a PR with this label. label Oct 28, 2021
@rickystewart rickystewart changed the title bazel: generate flatbuffers code in bazel build [WIP] bazel: generate flatbuffers code in bazel build Oct 28, 2021
@rickystewart rickystewart changed the title [WIP] bazel: generate flatbuffers code in bazel build bazel: glob-exclude all *_generated.go files from Gazelle Oct 28, 2021
@rickystewart rickystewart requested a review from rail October 28, 2021 15:56
@rickystewart rickystewart removed the do-not-merge bors won't merge a PR with this label. label Oct 28, 2021
@rickystewart rickystewart force-pushed the _generated branch 5 times, most recently from d13bd47 to ea4ee51 Compare October 29, 2021 20:42
@rickystewart
Copy link
Collaborator Author

bors r=rail

@rickystewart
Copy link
Collaborator Author

bors r-

@craig
Copy link
Contributor

craig bot commented Nov 1, 2021

Canceled.

This will help ensure that Gazelle doesn't accidentally reference
checked-in generated code.

The generated code in `pkg/col/colserde/arrowserde` is made by `flatc`,
the FlatBuffers compiler -- I tried to make a `genrule` to generate this
code but the code that `flatc` generates now doesn't match up to what's
checked in (maybe we used a different version of `flatc` for the
original version of the code?)

Closes cockroachdb#72096.

Release note: None
@rickystewart
Copy link
Collaborator Author

bors r=rail

@craig
Copy link
Contributor

craig bot commented Nov 1, 2021

Build failed:

@rickystewart
Copy link
Collaborator Author

Flake.

bors r=rail

@craig
Copy link
Contributor

craig bot commented Nov 1, 2021

Build succeeded:

@craig craig bot merged commit 83ace64 into cockroachdb:master Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bazel: glob-exclude all *_generated.go files from Gazelle
3 participants