Builds on Mac M1 imposible
- Dominant language
- Scala
- Stars
- 6.8k
- Forks
- 1.2k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 2
Description
## Environment details:
* Macbook Pro M1 (Apple Silicon)
* Idea: 2021.3.2
* docker: 20.10.12
* jdk: OpenJDK 11.0.14
* gralde: using bundled
## Steps to reproduce the issue:
1. check out brand new git copy
2. `./gradlew compileScala`
3. 🔥
## Provide the actual results and outputs:
```
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core:scheduler:generateProto'.
> Could not resolve all files for configuration ':core:scheduler:protobufToolsLocator_protoc'.
> Could not find protoc-osx-aarch_64.exe (com.google.protobuf:protoc:3.4.0).
Searched in the following locations:
https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/3.4.0/protoc-3.4.0-osx-aarch_64.exe
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2m 21s
```
## Additional information you deem important:
* Tried to use local protoc binary instead using `protocCommand=...` did not work.
* Changed build.gradle (`:core:sscheduler`) by adding:
```
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.19.4'
}
}
```
This causes an already "mitigated" bug (https://github.com/akka/akka-grpc/issues/786) to reappear, adding a `build/akka-grpc-gradle-plugin.lo` in the working directory of the gradle daemon fixes that but that does not seem to be a reasonable solution?
Ultimately, the version of `grpc:akka-grpc-gradle-plugin` should be updated but that looks to require a major update of gralde.
Contributor guide
Assessment
This issue has not been assessed yet.