Skip to content

scala-cli-action always install Java, even if JAVA_HOME is defined #3013

Open
@adamw

Description

@adamw

The action shouldn't install Java if one is already installed, but this doesn't happen. That's probably because the default value for jvm is temurin:17, so that's always installed, unless the option is overriden.

image

The work-around is to provide an empty value for jvm:

    - name: Install scala-cli
      uses: VirtusLab/scala-cli-setup@main
      with:
        jvm: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIIssues tied with CI/CD workflows.bugSomething isn't workingscala-cli-setup github actionIssues tied to the scala-cli-setup gh action.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions