in Sources/PackageRegistryCompatibilityTestSuite/Commands.swift [712:721]
func checkRegistryURL(_ url: String, allowHTTP: Bool) throws {
print("Checking package registry URL...")
if url.hasPrefix("https://") {
return
}
if allowHTTP, url.hasPrefix("http://") {
return print("Warning: Package registry URL must be HTTPS")
}
throw TestError("Package registry URL must be HTTPS")
}