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
Test parent directory of .netrc file is writable before using it (#4075)
* Test parent directory of .netrc file is writable before using it
https://ci.swift.org/job/swift-PR-source-compat-suite-debug/4058/
```
$ sandbox-exec -f /Users/buildnode/jenkins/workspace-private/swift-source-compat-suite-sandbox/sandbox_package.sb /Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-debug/build/compat_macos/install/toolchain/usr/bin/swift package --disable-sandbox -C /Users/buildnode/jenkins/workspace/swift-PR-source-compat-suite-debug/swift-source-compat-suite/project_cache/GRDB.swift clean
warning: '--chdir/-C' option is deprecated; use '--package-path' instead
warning: Failed to load .netrc file at /Users/buildnode/.netrc. Error: unreadableFile(<AbsolutePath:"/Users/buildnode/.netrc">)
error: other(1)
```
Not sure if the `other(1)` error is `.netrc` related. Trying to see if
this code change will fix it.
rdar://88308095
* Make sure defaultDirectory is not nil before comparing sharedConfigurationDirectory
sharedConfigurationDirectory is a custom path iff defaultDirectory is
non nil (in this case it's only ever nil when an error occurs while
reading/writing the directory) and defaultDirectory != sharedConfigurationDirectory
0 commit comments