Skip to content

Commit be395cd

Browse files
authored
Update pip.js
use sha256 instead of md5
1 parent 4a4ee4d commit be395cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pip.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { buildImage, getBindPath, getDockerUid } = require('./docker');
99
const { getStripCommand, getStripMode, deleteFiles } = require('./slim');
1010
const {
1111
checkForAndDeleteMaxCacheVersions,
12-
md5Path,
12+
sha256Path,
1313
getRequirementsWorkingPath,
1414
getUserCachePath
1515
} = require('./shared');
@@ -474,7 +474,7 @@ function installRequirementsIfNeeded(
474474
}
475475

476476
// Then generate our MD5 Sum of this requirements file to determine where it should "go" to and/or pull cache from
477-
const reqChecksum = md5Path(slsReqsTxt);
477+
const reqChecksum = sha256Path(slsReqsTxt);
478478

479479
// Then figure out where this cache should be, if we're caching, if we're in a module, etc
480480
const workingReqsFolder = getRequirementsWorkingPath(

0 commit comments

Comments
 (0)