Skip to content

Commit ee8598d

Browse files
committed
fix dockerPath, rename internally to srcPath
1 parent df188bb commit ee8598d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class RustPlugin {
5353
// Docker can't access resources outside of the current build directory.
5454
// This poses a problem if the serverless yaml is inside a workspace,
5555
// and we want pull in other packages from the workspace
56-
this.dockerPath = path.resolve(this.custom.dockerPath || this.servicePath);
56+
this.srcPath = path.resolve(this.custom.dockerPath || this.servicePath);
5757

5858
// By default, Serverless examines node_modules to figure out which
5959
// packages there are from dependencies versus devDependencies of a
@@ -228,7 +228,7 @@ class RustPlugin {
228228
cargoPackage,
229229
binary,
230230
profile,
231-
srcPath,
231+
this.srcPath,
232232
cargoRegistry,
233233
cargoDownloads,
234234
process.env
@@ -298,7 +298,7 @@ class RustPlugin {
298298
// see https://serverless.com/framework/docs/providers/aws/guide/packaging/
299299
// for more information
300300
const artifactPath = path.join(
301-
this.dockerPath,
301+
this.srcPath,
302302
`target/lambda/${"dev" === profile ? "debug" : "release"}`,
303303
`${binary}.zip`
304304
);

0 commit comments

Comments
 (0)