fix(build): prefer sibling Commander checkout
This commit is contained in:
parent
c447d51456
commit
151a23faa7
@ -1,9 +1,17 @@
|
||||
// swift-tools-version: 6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import Foundation
|
||||
import PackageDescription
|
||||
|
||||
let commanderDependency: Package.Dependency = .package(url: "https://github.com/steipete/Commander", from: "0.2.2")
|
||||
let packageDirectory = URL(fileURLWithPath: #filePath).deletingLastPathComponent()
|
||||
let localCommanderPath = packageDirectory
|
||||
.deletingLastPathComponent()
|
||||
.appendingPathComponent("Commander")
|
||||
.appendingPathComponent("Package.swift")
|
||||
let commanderDependency: Package.Dependency = FileManager.default.fileExists(atPath: localCommanderPath.path)
|
||||
? .package(path: "../Commander")
|
||||
: .package(url: "https://github.com/steipete/Commander.git", from: "0.2.2")
|
||||
|
||||
let package = Package(
|
||||
name: "Tachikoma",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user