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
If the default `$HOME` path is changed by an environment variable, `NSString.expandingTildeInPath` does not reflect this change.
As a user I would expect that `NSString.expandingTildeInPath` returns the same as `echo $HOME` or `echo ~` on the command line or a direct call against libc.
This problem surfaces when using GitHub actions where the default HOME path is changed to: `/github/home`
Although NSString.expandingTildeInPath does make use of $HOME it checks the user's home directory using getpwnam(3) first so the $HOME is not considered
Additional Detail from JIRA
md5: d00baaf0707960035a9b504222e29460
Issue Description:
If the default `$HOME` path is changed by an environment variable, `NSString.expandingTildeInPath` does not reflect this change.
As a user I would expect that `NSString.expandingTildeInPath` returns the same as `echo $HOME` or `echo ~` on the command line or a direct call against libc.
This problem surfaces when using GitHub actions where the default HOME path is changed to: `/github/home`
See: https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
Code to reproduce:
Logs:
Verified with:
swift:5.2
swiftlang/swift:nightly-master-xenial
The text was updated successfully, but these errors were encountered: