-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Clean test run #829
Clean test run #829
Conversation
This test has been failing for a while, and yet we've never noticed, and we don't seem to care. It depends on us exposing the cached files from coursier. Given that this code is stable and unlikely to change (see bazel-contrib#807) this feels like a safe change to make.
String uriString = uri.toString(); | ||
if (uriString.contains("repo1.maven.org") && uriString.contains("guava")) { | ||
foundGuavaJar = true; | ||
if (OS.indexOf("mac") >= 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this test not pass on Mac? Or do we just not need this test anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't pass anywhere. Ever since we switched to adding explicit visibilities on targets rather than having it set at the package level (#649), this test hasn't passed anywhere since we're not exporting the files. I've no idea why our CI runs haven't caught this, but it's been that way for a year now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's delete the feature, then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I can do that.
private/rules/maven_bom_fragment.bzl
Outdated
@@ -12,10 +12,22 @@ MavenBomFragmentInfo = provider( | |||
) | |||
|
|||
def _maven_bom_fragment_impl(ctx): | |||
java_info = ctx.attr.artifact[JavaInfo] | |||
|
|||
# Recent Bazel versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: mention the exact version cutover
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
79886e7
to
fd03048
Compare
With these changes,
bazel test //...
on macOS runs cleanly, without failures.