File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ function zipRequirements() {
18
18
const zipCachePath = getRequirementsLayerPath (
19
19
reqChecksum ,
20
20
targetZipPath ,
21
- this . options
21
+ this . options ,
22
+ this . serverless
22
23
) ;
23
24
24
25
const promises = [ ] ;
Original file line number Diff line number Diff line change @@ -89,11 +89,13 @@ function getRequirementsWorkingPath(
89
89
function getRequirementsLayerPath (
90
90
hash ,
91
91
fallback ,
92
- options
92
+ options ,
93
+ serverless ,
93
94
) {
94
95
// If we want to use the static cache
95
96
if ( hash && options && options . useStaticCache ) {
96
- hash = hash + '_slspyc.zip' ;
97
+ const architecture = serverless . service . provider . architecture || 'x86_64' ;
98
+ hash = `${ hash } _${ architecture } _slspyc.zip` ;
97
99
return path . join ( getUserCachePath ( options ) , hash ) ;
98
100
}
99
101
You can’t perform that action at this time.
0 commit comments