-
Notifications
You must be signed in to change notification settings - Fork 15
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
Generate empty repo when path is not set #63
base: main
Are you sure you want to change the base?
Conversation
Declare an empty repository with empty toolchains and an error message when the path to the NDK was missing.
1abff97
to
7204831
Compare
58dec55
to
ae85507
Compare
Note: this doesn't exactly work yet as we'd like to, as it errors with the following message
|
It would be great to also look at how to add a test for this. It would probably require a new task in .bazelci/presubmit.yml because all the tests will set |
Hi, any update on this change? |
@ahumesky I finally took the time to make it work as I wanted to. It involves adding a I added two tests in A failure will look like this (when building for Android platforms only):
|
When building incrementally, any change to the value of the variable named by name will cause this repository to be re-fetched.
Hmm yes expecting a failure in a test like this is tricky, I'm not sure that bazelci is setup up for negative tests. The alternative is to refactor the tests into "bazel within bazel test" integration tests: https://github.com/bazel-contrib/rules_bazel_integration_test I'm not a big fan of those because they tend to very fragile and somewhat slow, but unless bazelci can do this or that's added to bazelci, might be the only option. |
Declare an empty repository with empty toolchains and an error message when the path to the NDK was missing.
Based on a comment from #61 (comment) and a very similar approach to what's done in the starlark version of
rules_android
.