@@ -14,7 +14,7 @@ const {
14
14
const { quote } = require ( 'shell-quote' ) ;
15
15
const { sep } = require ( 'path' ) ;
16
16
17
- const { getUserCachePath, md5Path } = require ( './lib/shared' ) ;
17
+ const { getUserCachePath, sha256Path } = require ( './lib/shared' ) ;
18
18
19
19
const initialWorkingDir = process . cwd ( ) ;
20
20
@@ -1679,7 +1679,7 @@ test('py3.6 uses static and download cache', t => {
1679
1679
npm ( [ 'i' , path ] ) ;
1680
1680
sls ( [ '--useDownloadCache=true' , '--useStaticCache=true' , 'package' ] ) ;
1681
1681
const cachepath = getUserCachePath ( ) ;
1682
- const cacheFolderHash = md5Path ( '.serverless/requirements.txt' ) ;
1682
+ const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1683
1683
t . true (
1684
1684
pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
1685
1685
'http exists in download-cache'
@@ -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