You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some environments the home directory is not configured, thus
`user.home` can be set to e.g. "?" (like in the issue the Scala CLI team
has bumped into). See [OpenJDK
sources](https://github.com/openjdk/jdk/blob/master/src/java.base/unix/native/libjava/java_props_md.c#L508)
In those cases using e.g. `os.pwd` throws, since the `os.home` is also
initialized.
This fix allows `os.pwd` to still be used when `user.home` is set to
something weird.
One example of such environment with `user.home` set to "?" is running
Jenking on CloudBees, the results of trying to run Scala CLI there
looked like this, since we heavily use os.pwd in our code base:
Pull request: #239
---------
Co-authored-by: Lorenzo Gabriele <[email protected]>
Co-authored-by: Tobias Roeser <[email protected]>
0 commit comments