-
Notifications
You must be signed in to change notification settings - Fork 125
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
ScalaPB 1.0 and document use of local protoc for OSX ARM #1241
Conversation
I'm really looking forward to sbt-protoc 1.0.0, it will also fix running protoc without further workarounds on NixOS \o/ |
This is similar to #1146 |
project/Common.scala
Outdated
scalafmtOnCompile := true, | ||
// https://github.com/akka/akka-grpc/issues/1238 | ||
PB.protocExecutable := (if (protocbridge.SystemDetector.detectedClassifier() == "osx-aarch_64") | ||
file("/usr/local/bin/protoc") |
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.
This should be configurable. Hopefully ScalaPB can offer a good solution for it.
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's configurable by overriding PB.protocExecutable
- perhaps that is sufficient?
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.
Yes, that should be enough. A note/pointer in the Akka gRPC docs would be good.
@@ -106,7 +117,7 @@ If you want to use TLS-based negotiation on JDK 8 versions prior to | |||
[1.8.0_251](https://www.oracle.com/java/technologies/javase/8u251-relnotes.html), | |||
the server requires a special Java agent for ALPN. | |||
|
|||
See the [Akka HTTP docs about HTTP/2](https://doc.akka.io/docs/akka-http/10.1/server-side/http2.html#application-layer-protocol-negotiation-alpn-)) | |||
See the @extref:[Akka HTTP docs about HTTP/2](akka-http:server-side/http2.html#application-layer-protocol-negotiation-alpn-) |
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.
👍
ScalaPB 1.0 (in RC right now) allows setting the
protoc
executable so that a locally built version can be used.References #1238