Skip to content

Commit a43744a

Browse files
committed
Make sure to use v2 when enabled to download required tools
1 parent cffeef1 commit a43744a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/socket-daemon.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,15 @@ export default class SocketDaemon extends Daemon {
463463
_upload(uploadPayload, uploadCommandInfo) {
464464
if (Array.isArray(uploadCommandInfo.tools)) {
465465
uploadCommandInfo.tools.forEach(tool => {
466-
this.downloadTool(tool.name, tool.version, tool.packager);
466+
if (this.v2) {
467+
this.downloading.next({ status: this.DOWNLOAD_IN_PROGRESS });
468+
this.v2.installTool(tool).then(() => {
469+
this.downloading.next({ status: this.DOWNLOAD_DONE });
470+
});
471+
}
472+
else {
473+
this.downloadTool(tool.name, tool.version, tool.packager);
474+
}
467475
});
468476
}
469477

0 commit comments

Comments
 (0)