File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1765,14 +1765,14 @@ extension Workspace {
1765
1765
// FIXME: This should be an ordered set.
1766
1766
requiredIdentities = inputIdentities. union ( requiredIdentities)
1767
1767
1768
- let availableIdentities : Set < PackageReference > = Set ( manifestsMap. map {
1768
+ let availableIdentities : Set < PackageReference > = try Set ( manifestsMap. map {
1769
1769
// FIXME: adding this guard to ensure refactoring is correct 9/21
1770
1770
// we only care about remoteSourceControl for this validation. it would otherwise trigger for
1771
1771
// a dependency is put into edit mode, which we want to deprecate anyways
1772
1772
if case . remoteSourceControl = $0. 1 . packageKind {
1773
1773
let effectiveURL = workspace. mirrors. effective ( for: $0. 1 . packageLocation)
1774
1774
guard effectiveURL == $0. 1 . packageKind. locationString else {
1775
- preconditionFailure ( " effective url for \( $0. 1 . packageLocation) is \( effectiveURL) , different from expected \( $0. 1 . packageKind. locationString) " )
1775
+ throw InternalError ( " effective url for \( $0. 1 . packageLocation) is \( effectiveURL) , different from expected \( $0. 1 . packageKind. locationString) " )
1776
1776
}
1777
1777
}
1778
1778
return PackageReference ( identity: $0. key, kind: $0. 1 . packageKind)
You can’t perform that action at this time.
0 commit comments