scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Scala CLI does not detect if is run as `scala` when installed using coursier

Open romanowski opened this issue 2 years ago • 1 comments

Version(s)

0.1.12

Describe the bug Scala CLI does not detect if is run as scala when installed using coursier

To Reproduce

Install Scala CLI as scala-cli-sip using following command:

cs install --channel https://gist.githubusercontent.com/romanowski/f188a22999bbfd90d5ae7c054d41a0ae/raw/25e0f12491b65c4af5a9166fccf9cffbd5143e3e/scala-cli-sip-channel.json scala-cli-sip

Then scala-cli publish --help should fail, but it prints the help.

Expected behaviour Scala CLI should detect if installed in the SIP mode when using coursier.

romanowski avatar Aug 30 '22 15:08 romanowski

Suggestion from @lwronski :

coursier stores the binary file under the name .scala-cli-sip.aux, therefore the sip detection mechanism does not work. If we strip suffix .aux here - it should works, but it is more kind of workaround

romanowski avatar Aug 30 '22 17:08 romanowski