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

Easier External Repo Definitions #31

Merged
merged 1 commit into from
May 11, 2024

Conversation

CauhxMilloy
Copy link
Contributor

  • Making BUILD file content strings public (removing leading _) in deps.bzl.
    • Adding _CONTENT suffix to variable names to be more clear and match the repo attribute name.
  • Wrapping dependency http_archive definitions with maybe().

This is to more easily allow downstream projects to define the dependency targets (bats-core, etc) with slightly changed attributes if they want/need to.
Changing urls or adding patches, etc, can be done less verbosely by reusing BUILD file contents defined here. Applying changes can be done to only the necessary repos, others can still be loaded via bazel_bats_dependencies().

* Making BUILD file content strings public (removing leading `_`) in `deps.bzl`.
  * Adding `_CONTENT` suffix to variable names to be more clear and match the repo attribute name.
* Wrapping dependency `http_archive` definitions with `maybe()`.

This is to more easily allow downstream projects to define the dependency targets (bats-core, etc) with slightly changed attributes if they want/need to.
Changing `urls` or adding `patches`, etc, can be done less verbosely by reusing BUILD file contents defined here.
Applying changes can be done to only the necessary repos, others can still be loaded via `bazel_bats_dependencies()`.
@filmil filmil merged commit 69415af into filmil:main May 11, 2024
@CauhxMilloy
Copy link
Contributor Author

Thanks!

@CauhxMilloy CauhxMilloy deleted the easierExternalRepoDefs branch May 11, 2024 18:25
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