               )
             }
             return AbsolutePath(location).pathString
-        } else if TSCUtility.URL.scheme(dependencyLocation) == nil {
+        } else if parseScheme(dependencyLocation) == nil {
             // If the dependency URL is not remote, try to "fix" it.
             // If the URL has no scheme, we treat it as a path (either absolute or relative to the base URL).
             return AbsolutePath(dependencyLocation, relativeTo: packagePath).pathString

        )
    }

    /// Looks for Xcode-style build setting macros "$()".
    private static let invalidValueRegex = try! RegEx(pattern: #"(\$\(.*?\))"#)
}

import Foundation
import PackageModel
import TSCBasic

enum ManifestJSONParser {
    private static let filePrefix = "file://"
