                     continue
                 }
                 if currentVersion == version {
-                    packageStateChanges[specifier] = .unchanged(version)
+                    packageStateChanges[specifier] = .unchanged
                 } else {
                     packageStateChanges[specifier] = .updated(old: currentVersion, new: version)
                 }

            case .updated(_, let version):
                _ = try clone(specifier: specifier, version: version)
            case .removed: try remove(specifier: specifier)
            case .unchanged(_): break
            }
        }
    }

        case removed

        /// The package is unchanged.
        case unchanged

        /// The package is updated to a new version.
        case updated(old: Version, new: Version)
