VirtusLab / scala-cli

Scala CLI is a command-line tool to interact with the Scala language. It lets you compile, run, test, and package your Scala code (and more!)
https://scala-cli.virtuslab.org
Apache License 2.0
551 stars 129 forks source link

Document how to make Scala CLI work inside firewall-ed / corporate environments #1109

Open alexarchambault opened 2 years ago

alexarchambault commented 2 years ago

We need to document what we have now, and find out / implement what's missing.

What we have:

What we need:

ekrich commented 2 years ago

Hope it is ok to post this here.

> scala-cli native_props.sc

Error: java.lang.Exception: java.lang.Exception: Error while getting https://github.com/coursier/jvm-index/raw/master/index.json: download error: Caught java.io.IOException (Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required") while downloading https://github.com/coursier/jvm-index/raw/master/index.json
For more details, please see 'C:\Users\<user>\workspace\scripts\.scala-build\stacktraces\1660937103-9821838219452381754.log'

I believe this is the because Basic Auth doesn't work on redirect - there is one other place when Metals does a redirect that doesn't work as well. The url above becomes: https://raw.githubusercontent.com/coursier/jvm-index/master/index.json

I see the contents in the browser. Here is the original response header. location: https://raw.githubusercontent.com/coursier/jvm-index/master/index.json

Gedochao commented 1 year ago

This has been done in #1593, closing the ticket.

tgodzik commented 1 year ago

Looks like there are some issues still, so reopening