fix: keep checkout dependency resolution remote
This commit is contained in:
parent
b63ee9a326
commit
289d403c53
@ -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
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user