Skip to content

Commit b4140c1

Browse files
author
Andrew Klitzke
committed
maybe works?
1 parent 1a228bb commit b4140c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ class RustPlugin {
5858
const cargoDownloads = path.join(cargoHome, 'git');
5959

6060
const dockerCLI = process.env['SLS_DOCKER_CLI'] || 'docker';
61+
const servicePath = (funcArgs || {}).servicePath || this.servicePath;
6162
const defaultArgs = [
6263
'run',
6364
'--rm',
6465
'-t',
6566
'-e',
6667
`BIN=${binary}`,
6768
`-v`,
68-
`${this.servicePath}:/code`,
69+
`${servicePath}:/code`,
6970
`-v`,
7071
`${cargoRegistry}:/root/.cargo/registry`,
7172
`-v`,

0 commit comments

Comments
 (0)