dagger icon indicating copy to clipboard operation
dagger copied to clipboard

Gradle script does not run on M1 chipsets

Open stym06 opened this issue 3 years ago • 4 comments

Description Mentioned version of protoc does not have aarch64 files, that fails the gradle build

To Reproduce ./gradlew clean dagger-common:generateTestProto

Expected behavior Proto file generation

Behavior

Execution failed for task ':dagger-common:generateTestProto'.
> Could not resolve all files for configuration ':dagger-common:protobufToolsLocator_protoc'.
   > Could not find protoc-3.1.0-osx-aarch_64.exe (com.google.protobuf:protoc:3.1.0).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/3.1.0/protoc-3.1.0-osx-aarch_64.exe

Additional context

stym06 avatar Sep 28 '22 14:09 stym06

hey @stym06 , i have raised a pr for this #200 , can you pull the branch fix-protoc-arm64 and rerun the build to test if its working?

sumitaich1998 avatar Oct 03 '22 14:10 sumitaich1998

Still fails with another dependency issue:

Execution failed for task ':dagger-common:generateTestProto'.
> Could not resolve all files for configuration ':dagger-common:protobufToolsLocator_grpc'.
   > Could not find protoc-gen-grpc-java-1.19.0-osx-aarch_64.exe (io.grpc:protoc-gen-grpc-java:1.19.0).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/io/grpc/protoc-gen-grpc-java/1.19.0/protoc-gen-grpc-java-1.19.0-osx-aarch_64.exe


stym06 avatar Oct 04 '22 08:10 stym06

Can we have a profile for aarm64 arch builds? I think hotfixes might break in future.

stym06 avatar Oct 04 '22 08:10 stym06

@stym06 feel free to raise a pr to fix this issue. Let us know if any help is needed. Since we cannot test this on our system, it might be difficult to fix this ourselves, since we do not know which all dependencies can fail for M1 chipsets.

sumitaich1998 avatar Nov 04 '22 08:11 sumitaich1998