Component/s: Package Manager
Github actions CI, windows-latest (copied the setup script from compnerd's WinRT demo).
Swift for Windows DEVELOPMENT-SNAPSHOT-2021-03-25
I have a package for a library, swift-url. Within its repository, I have a folder "Benchmarks", containing another Swift package. The Package.swift for Benchmarks looks as follows:
Where the "WebURL" product is defined by swift-url's Package.swift.
swift-url builds, and its tests build, run, and pass on macOS, Linux, and Windows. Benchmarks fails to build on Windows only, and it seems like the issue is the relative path.
On macOS and Linux, I can build and run WebURLBenchmark even if I omit naming the parent package as "swift-url" in the package dependencies list (just writing `.package(path: "..")`) even if I refer to it by name in the target dependencies. SwiftPM somehow figures it out from the parent folder's name. If I try that on Windows, I get the following error:
"D:" is obviously not my package name. Seems like some path issues. If I add an explicit package name in the package dependencies list (so it looks like the snippet I pasted above), the error becomes: