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

Fall back to native rules if possible #10

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Fall back to native rules if possible #10

merged 2 commits into from
Oct 14, 2024

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Oct 14, 2024

Provides compatibility with Bazel versions before 7.4.0.

Also requires adding bazel_skylib to the dependency macro.

Fixes #9

Provides compatibility with Bazel versions before 7.4.0.

Also requires adding `bazel_skylib` to the dependency macro.
@fmeum fmeum marked this pull request as ready for review October 14, 2024 20:34
@fmeum fmeum requested review from comius and meteorcloudy October 14, 2024 20:34
Copy link
Collaborator

@comius comius left a comment

Choose a reason for hiding this comment

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

One thing to fix is, rules_bzl bzl_library target to include those new .bzl files. Without it I can't wire up build encyclopedia.


load(":sh_executable.bzl", "make_sh_executable_rule")

visibility("//shell")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will also limit doc generation in Bazel, because I need to point it to the actual rules.

@fmeum
Copy link
Collaborator Author

fmeum commented Oct 14, 2024

@comius I added the .bzl files and made some of them publicly visible, is this good enough?

@fmeum fmeum requested a review from comius October 14, 2024 21:33
@comius
Copy link
Collaborator

comius commented Oct 14, 2024

@comius I added the .bzl files and made some of them publicly visible, is this good enough?

Looks good. Thanks!

@fmeum fmeum merged commit ec686ef into main Oct 14, 2024
2 checks passed
@fmeum fmeum deleted the bazel-6 branch October 14, 2024 21:36
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.

Feature request: compatibility with older Bazels
2 participants