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
SR-14592 Create functional test for movable executable with resource bundle in SwiftPM
Issue Description:
Since Swift 5.4, the Bundle.module lookup searches for the resource bundle next to the location where swift binary was located during compilation (e.g. /usr/bin in swift:5.4 linux docker image) instead of the location where the compiled binary lies.
Environment
Swift 5.4 on linux
Additional Detail from JIRA
md5: 93bc9ff244e85867c9beadfa5de9bb20
relates to:
Issue Description:
Since Swift 5.4, the
Bundle.module
lookup searches for the resource bundle next to the location where swift binary was located during compilation (e.g./usr/bin
in swift:5.4 linux docker image) instead of the location where the compiled binary lies.This is due to the following change executing
Bundle.main
during the build instead of at execution time.https://github.com/apple/swift-package-manager/pull/2972/files#diff-13eb4b18e8a4f2de8467dae905be6bdc133208159aded4aa6dbb6a03be21c6bdL584
The text was updated successfully, but these errors were encountered: