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
swift build
export PATH=$PWD/.build/debug/:$PATH
ChdirProg
fatal error: Error raised at top level: realpath error: No such file or directory (2): ChdirProg: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-900.0.65.2/src/swift/stdlib/public/core/ErrorType.swift, line 187
This is because POSIX/chdir.swift calls realpath(CommandLine.arguments.first when the program name is resolved via $PATH.
I suspect this causes issues with --package-path, but am unsure how to cause this bug to manifest itself with swift build. Perhaps when swift build re-execs swift-build it always uses the full path?
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 7f6b9fff863f8eada827047e65debf1f
Issue Description:
I'm using SwiftPM's Utility product and ran into an issue with chdir. To reproduce the program has to be found on the path:
This is because POSIX/chdir.swift calls
realpath(CommandLine.arguments.first
when the program name is resolved via$PATH
.I suspect this causes issues with
--package-path
, but am unsure how to cause this bug to manifest itself withswift build
. Perhaps whenswift build
re-execsswift-build
it always uses the full path?The text was updated successfully, but these errors were encountered: