PackageRepository has different behaviors in the context of runtime and "kpm restore"