-
Notifications
You must be signed in to change notification settings - Fork 145
scala-cli cache override bug #3523
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
Comments
@ankita-ndd Can you provide the full stack trace? |
@Gedochao thanks for helping us out here!
I'm using this scala-cli release https://github.com/VirtusLab/scala-cli/releases/download/v1.6.2/scala-cli On thinking more about this - I think the root issue is that the environment in which we are trying to run scala-cli expects scala-cli to be hermetic. Is it possible to run scala-cli hermetically? |
It should be possible to run without internet access, but I'm not sure your exact use case has been tested before. |
Version(s)
scala-cli v1.6.2 release
Describe the bug
While invoking the scala-cli tool in our build, we use the following command and the flag
--cache
to avoid using the default cache location:But the build errors out with
Error: java.nio.file.FileSystemException: /home/dev/.cache/scalacli/local-repo/.lock-1.6.2: Read-only file system
Verified that the location of $scala_cli_path is indeed pointing to the scala cli.
Appreciate any help!
To Reproduce
The command used is:
Expected behaviour
We expected the
--cache
flag will override looking into the home dir which is not permitted in our build system.The text was updated successfully, but these errors were encountered: