Skip to content

Commit

Permalink
fix graalvm images
Browse files Browse the repository at this point in the history
  • Loading branch information
francisdb committed Dec 11, 2024
1 parent 4eef6fc commit 252fbab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graalvm-community/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUN \
chmod -R 755 /usr/share/scala && \
ln -s /usr/share/scala/bin/* /usr/local/bin && \
case $SCALA_VERSION in \
2*) echo "println(util.Properties.versionMsg)" > /test.scala ;; \
2*) echo "println(util.Properties.versionMsg)" > test.scala ;; \
*) echo 'import java.io.FileInputStream;import java.util.jar.JarInputStream;val scala3LibJar = classOf[CanEqual[_, _]].getProtectionDomain.getCodeSource.getLocation.toURI.getPath;val manifest = new JarInputStream(new FileInputStream(scala3LibJar)).getManifest;val ver = manifest.getMainAttributes.getValue("Implementation-Version");@main def main = println(s"Scala version ${ver}")' > test.scala ;; \
esac && \
scala -nocompdaemon test.scala && rm test.scala
Expand Down

0 comments on commit 252fbab

Please sign in to comment.