Skip to content

Commit

Permalink
Remove dependency checking plugin cause SwiftPM runs it too eagerly (…
Browse files Browse the repository at this point in the history
…for targets that aren't even in the current minimal dependency tree)
  • Loading branch information
stackotter committed Apr 7, 2024
1 parent 09d6a23 commit 415155c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 107 deletions.
10 changes: 2 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ let package = Package(
.target(name: "AppKitBackend", dependencies: ["SwiftCrossUI"]),
.target(
name: "QtBackend",
dependencies: ["SwiftCrossUI", .product(name: "Qlift", package: "qlift")],
plugins: ["DependencyCheckingPlugin"]
dependencies: ["SwiftCrossUI", .product(name: "Qlift", package: "qlift")]
),
.target(
name: "CursesBackend",
Expand All @@ -94,8 +93,7 @@ let package = Package(
),
.target(
name: "GtkBackend",
dependencies: ["SwiftCrossUI", "Gtk", "CGtk"],
plugins: ["DependencyCheckingPlugin"]
dependencies: ["SwiftCrossUI", "Gtk", "CGtk"]
),
.systemLibrary(
name: "CGtk",
Expand All @@ -117,10 +115,6 @@ let package = Package(
"XMLCoder", .product(name: "SwiftSyntaxBuilder", package: "swift-syntax"),
]
),
.plugin(
name: "DependencyCheckingPlugin",
capability: .buildTool()
),
]
)

Expand Down
98 changes: 0 additions & 98 deletions Plugins/DependencyCheckingPlugin/DependencyCheckingPlugin.swift

This file was deleted.

2 changes: 1 addition & 1 deletion format_and_lint.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
swift format format --in-place --recursive --configuration .swift-format Sources Examples/Sources Plugins
swift format format --in-place --recursive --configuration .swift-format Sources Examples/Sources
swiftlint lint --quiet

0 comments on commit 415155c

Please sign in to comment.