I have a Mac M1 (Apple Silicon) which is arm64 architecture.
Installing Coursier thru Homebrew using brew install coursier/formulas/coursier, installs coursier x64 (Intel) version. This doesn't happen when coursier is installed via curl for the M1 from install instructions.
Also the JDK installed using Coursier is also x64 architecture.
They should use the arm64 versions.
❯ uname -a
Darwin cdepaula-mac 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64 arm Darwin
❯ which cs
/opt/homebrew/bin/cs
❯ file /opt/homebrew/bin/cs
/opt/homebrew/bin/cs: Mach-O 64-bit executable x86_64
❯ cs java --available --update --ttl 0 |grep graalvm-java21
Downloading https://github.com/coursier/jvm-index/raw/master/index.json
Downloaded https://github.com/coursier/jvm-index/raw/master/index.json
graalvm-java21:21.0.0
graalvm-java21:21.0.1
graalvm-java21:21.0.2
❯ java -version
openjdk version "21.0.2" 2024-01-16
OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)
❯ file $(which java)
/Users/cdepaula/Library/Caches/Coursier/arc/https/github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_macos-x64_bin.tar.gz/graalvm-community-openjdk-21.0.2+13.1/Contents/Home/bin/java: Mach-O 64-bit executable x86_64
❯ cs java --jvm ibm-semeru-openj9-java21
https://github.com/ibmruntimes/semeru21-binaries/releases/download/jdk-21.0.3%2B9_openj9-0.44.0/ibm-semeru-open-jdk_x64_mac_21.0.3_9_openj9-0.44.0.tar.gz
64.6% [###### ] 138.4 MiB (21.8 MiB / s)
...
I have a Mac M1 (Apple Silicon) which is
arm64
architecture.Installing Coursier thru Homebrew using
brew install coursier/formulas/coursier
, installs coursier x64 (Intel) version. This doesn't happen when coursier is installed via curl for the M1 from install instructions.Also the JDK installed using Coursier is also x64 architecture.
They should use the arm64 versions.