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
Github actions CI, windows-latest (copied the setup script from compnerd's WinRT demo).
Swift for Windows DEVELOPMENT-SNAPSHOT-2021-03-25
Additional Detail from JIRA
Votes
1
Component/s
Package Manager
Labels
Bug
Assignee
None
Priority
Medium
md5: b1cde91a09c2e3091c4b1cf515d9891d
Issue Description:
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:\a\swift-url\swift-url\Benchmarks: error: unknown package 'swift-url' in dependencies of target 'WebURLBenchmark'; valid packages are: 'Benchmark', 'D:'
Error: Process completed with exit code 1.
"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:
Running resolver because the following dependencies were added: 'https://github.com/google/swift-benchmark', 'D:\'
error: D:\Package.swift has no Package.swift manifest
Error: Process completed with exit code 1.
The text was updated successfully, but these errors were encountered:
Environment
Github actions CI, windows-latest (copied the setup script from compnerd's WinRT demo).
Swift for Windows DEVELOPMENT-SNAPSHOT-2021-03-25
Additional Detail from JIRA
md5: b1cde91a09c2e3091c4b1cf515d9891d
Issue Description:
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:
The text was updated successfully, but these errors were encountered: