Closed jonesrajee closed 3 years ago
If I run swift run rocket {version} or comment out all of the //dev dependencies, then it appears to only bring in my Target - which is what I want; however - my CI pipeline no longer runs Danger!
Is that on that commit, or in general? Rockert should make another commit where enables the commented dev dependencies
The documentation says to add danger and a target DangerDependencies to my package. What I don't understand is, is this setup for an Xcode project that otherwise wouldn't have a Package.swift or is this intended to be for all setups?
You can have a Package.swift in a separate folder if you want, or you can use Danger via brew, given it has its own dependencies resolver, but is less performing
What is the point of creating a Danger library as well? This is a followup to the first question because it doesn't seem needed as well.
If you don't create a library that can not be linked with the Dangerfile compilation
I am not sure if this is an issue or something I have missed in the documentation but I am having the hardest time getting setup to use danger on a Swift Package
What I don't understand
DangerDependencies
to my package. What I don't understand is, is this setup for an Xcode project that otherwise wouldn't have aPackage.swift
or is this intended to be for all setups?What is happening is that Danger, along with some of my plugins, are being distributed with my actual package instead of just being a dev dependency.
I am also trying the similar plugin you have here, Rocket - but also can't get that to work correctly
Any help would be appreciated!
Resources
Existing package as close as possible to the instructions:
Package that no longer runs Danger:
Notice if I pull my local package into a repo - it brings all of the dev dependencies
If I run
swift run rocket {version}
or comment out all of the//dev
dependencies, then it appears to only bring in my Target - which is what I want; however - my CI pipeline no longer runs Danger!How I Expect the Package to appear
Danger Error