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: stub internal repo parts needed for building rust binaries #17387

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

redsun82
Copy link
Contributor

@redsun82 redsun82 commented Sep 5, 2024

This is another shot at #17382, using a different and more lightweight approach.

This allows building the ruby and python (and in the future also rust) packs from within the codeql repository. This will:

  • skip defining the glibc symbols checking, which only makes sense when building the release from the internal repository
  • stub out our universal_binary rule, which we only need when building the release.

This is another shot at #17382,
using a different and more lightweight approach.

This allows building the ruby and python (and in the future also rust)
packs from within the codeql repository. This will:
* skip defining the glibc symbols checking, which only makes sense when
  building the release from the internal repository
* stub out our `universal_binary` rule, which we only need when building
  the release.
@redsun82 redsun82 requested a review from criemen September 5, 2024 06:26
@redsun82 redsun82 requested a review from a team as a code owner September 5, 2024 06:26
Copy link
Collaborator

@criemen criemen left a comment

Choose a reason for hiding this comment

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

LGTM! This sidesteps a lot of the problems we saw with CI, repo coupling etc, I like this. Thanks for switching approaches!

@@ -8,7 +8,7 @@ def codeql_rust_binary(
visibility = None,
symbols_test = True,
**kwargs):
rust_label_name = name + "_single_arch"
rust_label_name = "single_arch/" + name
Copy link
Collaborator

Choose a reason for hiding this comment

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

❤️

Copy link
Contributor Author

@redsun82 redsun82 Sep 5, 2024

Choose a reason for hiding this comment

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

(mind that this is not just stylistic, by stubbing universal_binary with an alias this was required to preserve the base name)

@redsun82 redsun82 merged commit 28a7fca into main Sep 5, 2024
18 checks passed
@redsun82 redsun82 deleted the redsun82/bazel branch September 5, 2024 10:28
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