-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing diagnostic about missing dependency #6607
Comments
|
An even simpler example is the |
|
This is the kind of issue that the opt-in diagnostic added in #3562 aimed to address, but beyond that nothing will check that imports line up with package dependencies currently. |
|
For anyone stumbling on this bug and wanting to know the workaround without having to dig it out of #3562, if all of your |
Description
Description
Check out the
missing-dependency-diagnostictag from the https://github.com/val-lang/val project, follow the setup instructions if you haven't already, and doswift -vv test. You will get link errors. It turns out that this change is missing, but SPM / the swift compiler doesn't tell me about it:This is a big problem because often these missing dependencies don't result in link errors (like the state of that project at 5806c04fcb2b9). The project builds/runs/tests but who knows what misbehavior may have resulted from the mis-specification of Package.swift. If my tests fail, is it because of some unspecified dependency? Can't tell.
Expected behavior
No response
Actual behavior
No response
Steps to reproduce
No response
Swift Package Manager version/commit hash
Swift Package Manager - Swift 5.8.0
Swift & OS version (output of
swift --version ; uname -a)swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
Target: arm64-apple-macosx13.0
Darwin DaveA-MBP14.localdomain 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered: