mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
ML - Updating sqlmlutil to fix R package management (#11432)
Updating sqlmlutil to fix R package management
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user