toggle-local-spm 2.2.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/lib/toggle_local_spm/cli.rb +1 -1
- data/lib/toggle_local_spm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 95dce0fa2cf61cbaf30572bb310d82190cc2226d2214ab0ed71d6ca9cb4c42bd
|
|
4
|
+
data.tar.gz: d0348db3691d867a3f9d8fe7d4b6a11890e6b5bc8b20f0bad2d0e5a4f09575d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 859a3fa360d122b07a3fcd9f64cfff74cde70896935daa8309034df4f9a64dcba1e5c45f9ff1ef4fb05106439158e6ef3008f7d891110bba6045a5fd75666a17
|
|
7
|
+
data.tar.gz: 6bd2a0f5b172b59d11fe6ba00e556b6358c1d865f3ea02261547f161de2870baff33daed52f5c1921e9fc584014525d5d82bc0000109dad48404235fe3ef7e89
|
data/README.md
CHANGED
|
@@ -77,10 +77,10 @@ its type, current state, and whether it has a record in
|
|
|
77
77
|
`spm-local-overrides.json` (see below), e.g.:
|
|
78
78
|
|
|
79
79
|
```
|
|
80
|
-
# Package
|
|
81
|
-
1
|
|
82
|
-
2 DeviceKit
|
|
83
|
-
3
|
|
80
|
+
# Package Type State Managed
|
|
81
|
+
1 my-shared-ios 🎯 direct 🌏 remote ✅
|
|
82
|
+
2 DeviceKit 🎯 direct 🌏 remote
|
|
83
|
+
3 my-model-lib 🧩 indirect 🌏 remote
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
Each package toggles independently based on what's currently wired up in the
|
|
@@ -133,8 +133,8 @@ since the project genuinely, permanently depends on it.
|
|
|
133
133
|
|
|
134
134
|
An **indirect** dependency has no such entry — it's only known because it
|
|
135
135
|
shows up in `Package.resolved`, meaning some *other* dependency's own
|
|
136
|
-
`Package.swift` depends on it (e.g. `
|
|
137
|
-
`
|
|
136
|
+
`Package.swift` depends on it (e.g. `my-shared-ios` depending on
|
|
137
|
+
`my-model-lib`). Toggling one of these on doesn't edit that
|
|
138
138
|
other package's `Package.swift` at all. Instead it adds a brand-new,
|
|
139
139
|
*unlinked* local package reference directly to the project — not attached to
|
|
140
140
|
any target — purely so Xcode/SwiftPM's identity-based dependency resolution
|
data/lib/toggle_local_spm/cli.rb
CHANGED
|
@@ -330,7 +330,7 @@ module ToggleLocalSpm
|
|
|
330
330
|
# in packageReferences is enough for SwiftPM to unify the identity with
|
|
331
331
|
# the local checkout wherever else in the graph it's referenced
|
|
332
332
|
# (verified: it overrides the transitive pin even when the package that
|
|
333
|
-
# actually declares the dependency, e.g.
|
|
333
|
+
# actually declares the dependency, e.g. my-shared-ios, stays remote).
|
|
334
334
|
def add_indirect_local_ref(project, xcodeproj_path, candidate, state)
|
|
335
335
|
name = candidate.name
|
|
336
336
|
entry = state[name] || {}
|