Skip to content

bazel: remove genrule_repository#23768

Merged
htuch merged 1 commit intoenvoyproxy:mainfrom
keith:ks/bazel-remove-genrule_repository
Nov 1, 2022
Merged

bazel: remove genrule_repository#23768
htuch merged 1 commit intoenvoyproxy:mainfrom
keith:ks/bazel-remove-genrule_repository

Conversation

@keith
Copy link
Member

@keith keith commented Nov 1, 2022

This rule seems to have been used a lot more in the past, likely pre rules_foreign_cc. At this point it was only used for boringssl_fips, and we can easily replace that use with a normal genrule that just calls the same script. The script had to be updated slightly to remove the few dependencies on bazel specifics.

Signed-off-by: Keith Smiley keithbsmiley@gmail.com

This rule seems to have been used a lot more in the past, likely pre
rules_foreign_cc. At this point it was only used for boringssl_fips, and
we can easily replace that use with a normal genrule that just calls the
same script. The script had to be updated slightly to remove the few
dependencies on bazel specifics.

Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label Nov 1, 2022
@repokitteh-read-only
Copy link

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @htuch

🐱

Caused by: #23768 was opened by keith.

see: more, trace.

@keith
Copy link
Member Author

keith commented Nov 1, 2022

my actual motivation here was bazel keeps messing with Labels which broke the genrule_cmd accessor yet again. I think I can come up with a new solution for that but it doesn't seem like we need to maintain this anymore either

Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Nice cleanup!

@repokitteh-read-only repokitteh-read-only bot removed the deps Approval required for changes to Envoy's external dependencies label Nov 1, 2022
@htuch htuch merged commit ef687b0 into envoyproxy:main Nov 1, 2022
@keith keith deleted the ks/bazel-remove-genrule_repository branch November 1, 2022 04:43
jwendell pushed a commit to jwendell/envoy that referenced this pull request Dec 22, 2022
This rule seems to have been used a lot more in the past, likely pre
rules_foreign_cc. At this point it was only used for boringssl_fips, and
we can easily replace that use with a normal genrule that just calls the
same script. The script had to be updated slightly to remove the few
dependencies on bazel specifics.

Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
Signed-off-by: Jonh Wendell <jwendell@redhat.com>
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.

2 participants