-
Notifications
You must be signed in to change notification settings - Fork 136
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
LastOnEmptyPath when installing in Alpine #2758
Comments
In addition, it would be interesting to execute:
|
Same problem happens with this image:
Latest alpine 3.19.1. |
Source code of Path.scala: |
@Gedochao we are encountering this issue when trying to build the scala sbt docker image since
edit: a workaround is not running a script in the fs root |
Also happens on some non-alpine systems when running a script in the root of the filesystem. |
I am not sure why this wouldn't work with `os.root`, but at least this should not throw. Should fix VirtusLab#2758
This is interesting, it should not happen since we already check for root. I added additional check in #3131 |
Isn't that related to com-lihaoyi/os-lib#276 ? |
I think this one is different, since we already check for root and return empty string in the case. |
For reference I'm pasting the stack trace we got using the scala 3.5.0 sbt docker build:
|
Version(s)
Describe the bug
I'm following this guide to install scala-cli on Alpine:
https://scala-cli.virtuslab.org/install
It works ok, but when trying to run it:
To Reproduce
Expected behaviour
I can use scala-cli.
The text was updated successfully, but these errors were encountered: