@@ -14,7 +14,7 @@ const {
1414const { quote } = require ( 'shell-quote' ) ;
1515const { sep } = require ( 'path' ) ;
1616
17- const { getUserCachePath, md5Path } = require ( './lib/shared' ) ;
17+ const { getUserCachePath, sha256Path } = require ( './lib/shared' ) ;
1818
1919const initialWorkingDir = process . cwd ( ) ;
2020
@@ -1679,7 +1679,7 @@ test('py3.6 uses static and download cache', t => {
16791679 npm ( [ 'i' , path ] ) ;
16801680 sls ( [ '--useDownloadCache=true' , '--useStaticCache=true' , 'package' ] ) ;
16811681 const cachepath = getUserCachePath ( ) ;
1682- const cacheFolderHash = md5Path ( '.serverless/requirements.txt' ) ;
1682+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
16831683 t . true (
16841684 pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
16851685 'http exists in download-cache'
@@ -1704,7 +1704,7 @@ test(
17041704 'package'
17051705 ] ) ;
17061706 const cachepath = getUserCachePath ( ) ;
1707- const cacheFolderHash = md5Path ( '.serverless/requirements.txt' ) ;
1707+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
17081708 t . true (
17091709 pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
17101710 'http exists in download-cache'
@@ -1724,7 +1724,7 @@ test('py3.6 uses static cache', t => {
17241724 npm ( [ 'i' , path ] ) ;
17251725 sls ( [ '--useStaticCache=true' , 'package' ] ) ;
17261726 const cachepath = getUserCachePath ( ) ;
1727- const cacheFolderHash = md5Path ( '.serverless/requirements.txt' ) ;
1727+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
17281728 t . true (
17291729 pathExistsSync ( `${ cachepath } ${ sep } ${ cacheFolderHash } _slspyc${ sep } flask` ) ,
17301730 'flask exists in static-cache'
@@ -1758,7 +1758,7 @@ test('py3.6 uses static cache with cacheLocation option', t => {
17581758 npm ( [ 'i' , path ] ) ;
17591759 const cachepath = '.requirements-cache' ;
17601760 sls ( [ '--useStaticCache=true' , `--cacheLocation=${ cachepath } ` , 'package' ] ) ;
1761- const cacheFolderHash = md5Path ( '.serverless/requirements.txt' ) ;
1761+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
17621762 t . true (
17631763 pathExistsSync ( `${ cachepath } ${ sep } ${ cacheFolderHash } _slspyc${ sep } flask` ) ,
17641764 'flask exists in static-cache'
@@ -1785,7 +1785,7 @@ test(
17851785 'package'
17861786 ] ) ;
17871787 const cachepath = getUserCachePath ( ) ;
1788- const cacheFolderHash = md5Path ( '.serverless/requirements.txt' ) ;
1788+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
17891789 t . true (
17901790 pathExistsSync ( `${ cachepath } ${ sep } ${ cacheFolderHash } _slspyc${ sep } flask` ) ,
17911791 'flask exists in static-cache'
0 commit comments