From 032db2a2d09d42c3a259638b287da2f17449f03d Mon Sep 17 00:00:00 2001 From: Sam Hughes Date: Wed, 16 Oct 2019 16:24:37 +0100 Subject: [PATCH] lib,install: always download SHA sums on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node-gyp/pull/1926 Reviewed-By: João Reis Reviewed-By: Richard Lau --- lib/install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/install.js b/lib/install.js index b870532880..06e82871f7 100644 --- a/lib/install.js +++ b/lib/install.js @@ -224,8 +224,8 @@ function install (fs, gyp, argv, callback) { var installVersionPath = path.resolve(devDir, 'installVersion') fs.writeFile(installVersionPath, gyp.package.installVersion + '\n', deref) - // Only download SHASUMS.txt if not using tarPath override - if (!tarPath) { + // Only download SHASUMS.txt if we downloaded something in need of SHA verification + if (!tarPath || win) { // download SHASUMS.txt async++ downloadShasums(deref)