coursier
coursier copied to clipboard
cs m1 native runner cannot bootstrap itself
./cs install --channel my-channel cs
installs a failing runner
maybe I am being too quick to try this out before any announcement but here were the steps.
download native M1 runner from https://github.com/VirtusLab/coursier-m1
curl -fL https://github.com/VirtusLab/coursier-m1/releases/download/v2.1.0-M6-44-gc47ecec07/cs-aarch64-apple-darwin.gz | gzip -d > cs
chmod +x cs
then the downloaded cs
works fine:
$ ./cs version
2.1.0-M6-44-gc47ecec07
but if I install the cs
native runner from an app descriptor my-channel/cs.json
(based from https://github.com/coursier/apps/pull/164)
then it fails:
$ ./cs install --channel my-channel cs
https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/maven-metadata.xml
No new update since 2022-07-28 18:45:38
Wrote cs
$ cs version
/Users/jamie/Library/Application Support/Coursier/bin/cs: line 2: /Users/jamie/Library/Application Support/Coursier/bin/.cs.aux: cannot execute binary file
/Users/jamie/Library/Application Support/Coursier/bin/cs: line 2: /Users/jamie/Library/Application Support/Coursier/bin/.cs.aux: Undefined error: 0