@@ -1704,7 +1704,7 @@ test(
1704
1704
'package'
1705
1705
] ) ;
1706
1706
const cachepath = getUserCachePath ( ) ;
1707
- const cacheFolderHash = md5Path ( '.serverless/requirements.txt' ) ;
1707
+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1708
1708
t . true (
1709
1709
pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
1710
1710
'http exists in download-cache'
@@ -1724,7 +1724,7 @@ test('py3.6 uses static cache', t => {
1724
1724
npm ( [ 'i' , path ] ) ;
1725
1725
sls ( [ '--useStaticCache=true' , 'package' ] ) ;
1726
1726
const cachepath = getUserCachePath ( ) ;
1727
- const cacheFolderHash = md5Path ( '.serverless/requirements.txt' ) ;
1727
+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1728
1728
t . true (
1729
1729
pathExistsSync ( `${ cachepath } ${ sep } ${ cacheFolderHash } _slspyc${ sep } flask` ) ,
1730
1730
'flask exists in static-cache'
@@ -1758,7 +1758,7 @@ test('py3.6 uses static cache with cacheLocation option', t => {
1758
1758
npm ( [ 'i' , path ] ) ;
1759
1759
const cachepath = '.requirements-cache' ;
1760
1760
sls ( [ '--useStaticCache=true' , `--cacheLocation=${ cachepath } ` , 'package' ] ) ;
1761
- const cacheFolderHash = md5Path ( '.serverless/requirements.txt' ) ;
1761
+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1762
1762
t . true (
1763
1763
pathExistsSync ( `${ cachepath } ${ sep } ${ cacheFolderHash } _slspyc${ sep } flask` ) ,
1764
1764
'flask exists in static-cache'
@@ -1785,7 +1785,7 @@ test(
1785
1785
'package'
1786
1786
] ) ;
1787
1787
const cachepath = getUserCachePath ( ) ;
1788
- const cacheFolderHash = md5Path ( '.serverless/requirements.txt' ) ;
1788
+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1789
1789
t . true (
1790
1790
pathExistsSync ( `${ cachepath } ${ sep } ${ cacheFolderHash } _slspyc${ sep } flask` ) ,
1791
1791
'flask exists in static-cache'
0 commit comments