Skip to content

Commit d433776

Browse files
committed
fix: use the same CARGO_HOME path as the softprops/lambda-rust docker container
1 parent ebe43ce commit d433776

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ class RustPlugin {
188188
`-v`,
189189
`${srcPath}:/code`,
190190
`-v`,
191-
`${cargoRegistry}:/root/.cargo/registry`,
191+
`${cargoRegistry}:/cargo/registry`,
192192
`-v`,
193-
`${cargoDownloads}:/root/.cargo/git`,
193+
`${cargoDownloads}:/cargo/git`,
194194
];
195195
const customArgs = (env["SLS_DOCKER_ARGS"] || "").split(" ") || [];
196196
let cargoFlags = (funcArgs || {}).cargoFlags || this.custom.cargoFlags;

tests/unit/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ describe("RustPlugin", () => {
241241
"-v",
242242
"source_path:/code",
243243
"-v",
244-
"cargo_registry:/root/.cargo/registry",
244+
"cargo_registry:/cargo/registry",
245245
"-v",
246-
"cargo_downloads:/root/.cargo/git",
246+
"cargo_downloads:/cargo/git",
247247
"-e",
248248
"PROFILE=release",
249249
"-e",

0 commit comments

Comments
 (0)