Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alexarchambault opened this issue Jun 15, 2022 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@alexarchambault
Copy link
Contributor

alexarchambault commented Jun 15, 2022

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

What we have:

  • coursier mirrors
  • proxy authentication

What we need:

@alexarchambault alexarchambault added the documentation Improvements or additions to documentation label Jun 15, 2022
@alexarchambault alexarchambault self-assigned this Jun 15, 2022
@ekrich
Copy link

ekrich commented Aug 19, 2022

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
Copy link
Contributor

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

@tgodzik
Copy link
Member

tgodzik commented Oct 9, 2023

Looks like there are some issues still, so reopening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants