Skip to content

Commit

Permalink
fix: scala arm64 "failed to exec spawn helper"
Browse files Browse the repository at this point in the history
  • Loading branch information
strophy committed Apr 18, 2024
1 parent 56d0c13 commit ec8092e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ WORKDIR /scala-protobuf
RUN gu install native-image
# Make sbt use the version of native-image installed by gu instead of downloading a separate version
ARG NATIVE_IMAGE_INSTALLED=true
# RUN chmod +x $JAVA_HOME/lib/jspawnhelper
# Fix "Failed to exec spawn helper" error in arm64 emulator build
ARG JAVA_OPTS="-Djdk.lang.Process.launchMechanism=vfork"
RUN ./make_reflect_config.sh
RUN sbt protocGenScalaNativeImage/nativeImage
RUN install -D /scala-protobuf/target/protoc-gen-scala /out/usr/bin/protoc-gen-scala
Expand Down

0 comments on commit ec8092e

Please sign in to comment.