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

colexec: remove duplication around bazel utility functions #60993

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

yuzefovich
Copy link
Member

Previously, we had essentially duplicated .bzl files in two packages
that need to generate code using execgen, but this can be avoided by
defining a separate .bzl file as an extension used in both places.

Release note: None

@yuzefovich yuzefovich requested review from rickystewart, irfansharif and a team February 23, 2021 07:12
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@@ -71,3 +48,7 @@ def gen_eg_go_rules():
""",
tools = [":execgen", ":goimports"],
)

def rule_name_for(target, visibility=["//visibility:private"]):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this visibility annotation do anything? We're not really using it, no?

Copy link
Member Author

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TFTR!

bors r+

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @irfansharif and @rickystewart)


pkg/sql/colexecbase/EXECGEN.bzl, line 52 at r1 (raw file):

Previously, irfansharif (irfan sharif) wrote…

Does this visibility annotation do anything? We're not really using it, no?

I thought it would prohibit from importing this function into another packages, but it seems like it doesn't do anything as you correctly pointed out, so I removed it.

Copy link
Collaborator

@rickystewart rickystewart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wfm

Previously, we had essentially duplicated `.bzl` files in two packages
that need to generate code using `execgen`, but this can be avoided by
defining a separate `.bzl` file as an extension used in both places.

Release note: None
@craig
Copy link
Contributor

craig bot commented Feb 23, 2021

Canceled.

@yuzefovich
Copy link
Member Author

bors was saying there was a merge conflict, so I rebased and force-pushed (probably that was on a concurrent PR though).

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 23, 2021

Build succeeded:

@craig craig bot merged commit e9f5f8c into cockroachdb:master Feb 23, 2021
@yuzefovich yuzefovich deleted the execgen branch February 24, 2021 01:33
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.

4 participants