scala-cli
scala-cli copied to clipboard
Scala CLI does not detect if is run as `scala` when installed using coursier
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.
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