-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Latest release unhides DangerDeps product causing failures #475
Comments
@f-meloni I feel like many of my problems have been starting with this line not being commented out in the .12 release tag: |
Confirmed, finally got everything working again. The above line should be commented out, right? I've created my own fork which makes my Danger work again. I can even run it locally on an M1 machine. In other words, this would solve:
As I'm building using Xcode 13 and Swift 5.5 on a M1 MacBook To be clear; I tried using: .library(name: "DangerDeps[PACKAGE_NAME]", type: .dynamic, targets: ["DangerDependencies"]), Instead of: .library(name: "DangerDeps", type: .dynamic, targets: ["DangerDependencies"]), But I couldn't get that to work in anyway Updated the title of this issue! |
According to the old tags, .library(name: "DangerDeps", type: .dynamic, targets: ["DangerDependencies"]), should be commented out on release, as @AvdLee said. https://github.com/danger/swift/blob/3.11.0/Package.swift |
Thank you very much for investigating this! |
Yes, just realised that I've missed this change on #414 |
I've just released 3.12.1 ac99660 |
@f-meloni confirmed that release fixed all my issues. Closing this one. Thanks for the quick turnaround! |
Amazing! Thank you for all the help! |
@f-meloni reopening this issue for the original issue description; I'm still getting this error for my plugin:
Don't you have the same for your plugins once you update it to Swift 5.5? |
If I remember correctly we need to link Danger when we compile the Dangerfile And dynamic is to force SPM to create a library we can link.
🤔 Let me give it a try |
Back in the days |
@AvdLee from my very first test, everything looks ok f-meloni/danger-swift-coverage#31. |
@f-meloni posted my feedback inside the PR you opened! |
This is the error I'm getting:
Using Xcode 13. The plugin is open-source, so you can try it out:
https://github.com/WeTransfer/WeTransfer-iOS-CI/tree/master/WeTransferPRLinter
This is currently how the Package.swift looks:
Commenting out the test target lets Xcode build successfully.
The text was updated successfully, but these errors were encountered: