Use GetRepoImportPath/GetRepoImportPathPattern.