fix: keep checkout dependency resolution remote

This commit is contained in:
Peter Steinberger 2026-04-28 01:55:24 +01:00
parent b63ee9a326
commit 289d403c53
No known key found for this signature in database
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,11 @@
All notable changes to AXorcist will be documented in this file.
## [0.1.2] - 2026-04-28
### Fixed
- Avoid treating SwiftPM's `.build/checkouts` cache as a vendored workspace when resolving Commander.
## [0.1.1] - 2026-04-28
### Changed

View File

@ -13,8 +13,9 @@ let approachableConcurrencySettings: [SwiftSetting] = [
let packageDirectory = URL(fileURLWithPath: #filePath).deletingLastPathComponent()
let localCommanderPath = packageDirectory.deletingLastPathComponent().appendingPathComponent("Commander").path
let isSwiftPMCheckout = packageDirectory.path.contains("/.build/checkouts/")
let commanderDependency: Package.Dependency =
if FileManager.default.fileExists(atPath: localCommanderPath) {
if !isSwiftPMCheckout, FileManager.default.fileExists(atPath: localCommanderPath) {
.package(path: "../Commander")
} else {
.package(url: "https://github.com/steipete/Commander.git", exact: "0.2.2")