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

ScalaPB 1.0 and document use of local protoc for OSX ARM #1241

Merged
merged 5 commits into from
Jan 22, 2021

Conversation

ennru
Copy link
Contributor

@ennru ennru commented Jan 18, 2021

ScalaPB 1.0 (in RC right now) allows setting the protoc executable so that a locally built version can be used.

References #1238

@raboof
Copy link
Contributor

raboof commented Jan 18, 2021

I'm really looking forward to sbt-protoc 1.0.0, it will also fix running protoc without further workarounds on NixOS \o/

@ennru
Copy link
Contributor Author

ennru commented Jan 18, 2021

This is similar to #1146

@raboof raboof added this to the 1.1.0 milestone Jan 19, 2021
@raboof raboof mentioned this pull request Jan 19, 2021
scalafmtOnCompile := true,
// https://github.com/akka/akka-grpc/issues/1238
PB.protocExecutable := (if (protocbridge.SystemDetector.detectedClassifier() == "osx-aarch_64")
file("/usr/local/bin/protoc")
Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

@ennru ennru changed the title ScalaPB 1.0 and use local protoc for OSX ARM ScalaPB 1.0 and document use of local protoc for OSX ARM Jan 22, 2021
@ennru ennru marked this pull request as ready for review January 22, 2021 09:23
@@ -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-)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@ennru ennru merged commit b1515c9 into akka:master Jan 22, 2021
@ennru ennru deleted the local-protoc branch January 22, 2021 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants