GithubHelp home page GithubHelp logo

virtuslab / coursier-m1 Goto Github PK

View Code? Open in Web Editor NEW
10.0 11.0 3.0 105 KB

A small repo to release coursier using self-hosted Mac M1 runner

License: Apache License 2.0

Scala 35.29% Shell 37.97% Batchfile 26.74%

coursier-m1's Introduction

coursier-m1

Apple M1 and Linux aarch64 launchers of coursier

Find the launchers as assets of the releases.

This repository builds coursier launchers for macOS, both for Intel processors (as a sanity check of the build here), and for M1, alongside launchers for Linux on aarch64.

The generated launchers are tested just like those of the main coursier repository, via the cli-tests module of the main coursier repository, that is published to Maven Central, is pulled in this repo, and used to test the launchers here.

coursier-m1's People

Contributors

alexarchambault avatar dependabot[bot] avatar gedochao avatar lwronski avatar scala-steward avatar tgodzik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coursier-m1's Issues

`No adoptium version` when running 2.1.6 `cs java`

Running on an M2 Pro with Mac OS 13.0 I am unable to install jvms with the aarch64 coursier at least for 2.1.6.

Steps to reproduce:

$ curl -L -o cs-aarch64-apple-darwin-2.1.6-Virtus.gz https://github.com/VirtusLab/coursier-m1/releases/download/v2.1.6/cs-aarch64-apple-darwin.gz
$ chmod a+x cs-aarch64-apple-darwin-2.1.6-Virtus
$ ./cs-aarch64-apple-darwin-2.1.6-Virtus version
2.1.6
$ ./cs-aarch64-apple-darwin-2.1.6-Virtus java --jvm 8 -version
JVM 8 not found in index: No adoptium version matching '1.8+' found

But the same setup works using the x86 binary (I have Rosetta2 emulation going):

$ curl -L -o cs-x86_64-apple-darwin-2.1.6-Virtus.gz https://github.com/VirtusLab/coursier-m1/releases/download/v2.1.6/cs-x86_64-apple-darwin.gz
$ gunzip cs-x86_64-apple-darwin-2.1.6-Virtus.gz
$ chmod a+x cs-x86_64-apple-darwin-2.1.6-Virtus
$ ./cs-x86_64-apple-darwin-2.1.6-Virtus java --jvm 8 -version
... installs the first time ...
openjdk version "1.8.0_392"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_392-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.392-b08, mixed mode)

We ran into this issue when trying to use the VirtusLab coursier for more recent M1 architecture binaries. pantsbuild/pants#20174

The aarch64 binary is able to perform other coursier functions without trouble like resolve or fetch org.scalameta::scalafmt-cli:2.4.2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.