Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

[WIP] Support Bazel 0.28.1 #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

[WIP] Support Bazel 0.28.1 #18

wants to merge 3 commits into from

Conversation

andrew-stripe
Copy link
Contributor

This PR adds support for Bazel 0.28.1. We've instead decided to abandon using sbt-bazel in Rainier but I thought I should open the PR as a WIP in case someone wants to pick it up in the future. Feel free to close if preferred.

Copy link

@johnynek johnynek left a comment

Choose a reason for hiding this comment

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

looks good to me, just a few nits.

@@ -8,7 +8,15 @@ object BazelAst {

final case class PyCall(
funName: String,
args: List[(String, PyExpr)]
args: List[PyExpr] = List(),
Copy link

Choose a reason for hiding this comment

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

nit: Nil is slightly more efficient List() is a var-args so it allocates a zero length array for these.

@@ -115,7 +132,39 @@ object BazelAst {
PyStr("scala_maven_import_external")
)
)
)
) ++ protobufVersion.map { case(version, sha256) =>
Copy link

Choose a reason for hiding this comment

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

case (version, sha256) => here would be standard style.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants