File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,8 @@ function installRequirementsIfNeeded(
541
541
const workingReqsFolder = getRequirementsWorkingPath (
542
542
reqChecksum ,
543
543
requirementsTxtDirectory ,
544
- options
544
+ options ,
545
+ serverless
545
546
) ;
546
547
547
548
// Check if our static cache is present and is valid
Original file line number Diff line number Diff line change @@ -55,17 +55,20 @@ function checkForAndDeleteMaxCacheVersions(options, serverless) {
55
55
* @param {string } subfolder
56
56
* @param {string } servicePath
57
57
* @param {Object } options
58
+ * @param {Object } serverless
58
59
* @return {string }
59
60
*/
60
61
function getRequirementsWorkingPath (
61
62
subfolder ,
62
63
requirementsTxtDirectory ,
63
- options
64
+ options ,
65
+ serverless ,
64
66
) {
65
67
// If we want to use the static cache
66
68
if ( options && options . useStaticCache ) {
67
69
if ( subfolder ) {
68
- subfolder = subfolder + '_slspyc' ;
70
+ const architecture = serverless . service . provider . architecture || 'x86_64' ;
71
+ subfolder = `${ subfolder } _${ architecture } _slspyc` ;
69
72
}
70
73
// If we have max number of cache items...
71
74
You can’t perform that action at this time.
0 commit comments