ML - Updating sqlmlutil to fix R package management (#11432)

Updating sqlmlutil to fix R package management
This commit is contained in:
Leila Lali
2020-08-12 14:29:07 -07:00
committed by GitHub
parent 6e306461d7
commit 053a2c7446
3 changed files with 21 additions and 11 deletions

View File

@@ -133,7 +133,13 @@ export class PackageManager {
await utils.createFolder(utils.getRPackagesFolderPath(this._rootFolder));
const packages = this._config.requiredSqlRPackages.filter(p => !p.platform || p.platform === process.platform);
await Promise.all(packages.map(x => this.installRPackage(x)));
// Installs packages in order of listed in the config. The order specifies the dependency of the packages and
// packages cannot install as parallel because of the dependency for each other
for (let index = 0; index < packages.length; index++) {
const packageName = packages[index];
await this.installRPackage(packageName);
}
}
/**