feat: Begins update for more modern swift-dependencies implementation.

This commit is contained in:
2024-12-20 12:54:10 -05:00
parent 1885a90f62
commit 847ddbc7b5
19 changed files with 439 additions and 130 deletions

View File

@@ -8,16 +8,16 @@ struct GenerateVersionBuildPlugin: BuildToolPlugin {
target: PackagePlugin.Target
) async throws -> [PackagePlugin.Command] {
guard let target = target as? SourceModuleTarget else { return [] }
let gitDirectoryPath = target.directory
.removingLastComponent()
.removingLastComponent()
let tool = try context.tool(named: "cli-version")
let outputPath = context.pluginWorkDirectory
let outputFile = outputPath.appending("Version.swift")
return [
.buildCommand(
displayName: "Build With Version Plugin",