You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if pin.value.state !=PinsStore.Pin(dependency)?.state {
1359
+
needsUpdate =true
1360
+
break
1361
+
}
1362
+
}else{
1364
1363
needsUpdate =true
1365
1364
break
1366
1365
}
1367
-
}else{
1368
-
needsUpdate =true
1369
-
break
1370
1366
}
1371
1367
}
1368
+
}else{
1369
+
needsUpdate =true
1372
1370
}
1373
1371
1374
1372
// exist early is there is nothing to do
1375
-
guardneedsUpdateelse{
1373
+
if !needsUpdate {
1376
1374
return
1377
1375
}
1378
1376
@@ -1382,29 +1380,6 @@ extension Workspace {
1382
1380
pinsStore.pin(dependency)
1383
1381
}
1384
1382
1385
-
/*
1386
-
// Reset the pinsStore and start pinning the required dependencies.
1387
-
pinsStore.unpinAll()
1388
-
1389
-
let requiredDependencies = dependencyManifests.computePackages().required.filter({ $0.kind.isPinnable })
1390
-
for dependency in requiredDependencies {
1391
-
if let managedDependency = self.state.dependencies[comparingLocation: dependency] {
1392
-
pinsStore.pin(managedDependency)
1393
-
} else {
1394
-
observabilityScope.emit(warning: "required dependency \(dependency.identity) (\(dependency.locationString)) was not found in managed dependencies and will not be recorded in resolved file")
1395
-
}
1396
-
}
1397
-
*/
1398
-
1399
-
1400
-
/*
1401
-
let requiredDependencies = dependencyManifests.computePackages().required
1402
-
for dependency in self.state.dependencies {
1403
-
if requiredDependencies.contains(where: { $0.equalsIncludingLocation(dependency.packageRef) }) {
0 commit comments