Skip to content

Commit

Permalink
fix: use the same CARGO_HOME path as the softprops/lambda-rust docker…
Browse files Browse the repository at this point in the history
… container
  • Loading branch information
kenkoooo committed Jun 27, 2021
1 parent ebe43ce commit d433776
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ class RustPlugin {
`-v`,
`${srcPath}:/code`,
`-v`,
`${cargoRegistry}:/root/.cargo/registry`,
`${cargoRegistry}:/cargo/registry`,
`-v`,
`${cargoDownloads}:/root/.cargo/git`,
`${cargoDownloads}:/cargo/git`,
];
const customArgs = (env["SLS_DOCKER_ARGS"] || "").split(" ") || [];
let cargoFlags = (funcArgs || {}).cargoFlags || this.custom.cargoFlags;
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ describe("RustPlugin", () => {
"-v",
"source_path:/code",
"-v",
"cargo_registry:/root/.cargo/registry",
"cargo_registry:/cargo/registry",
"-v",
"cargo_downloads:/root/.cargo/git",
"cargo_downloads:/cargo/git",
"-e",
"PROFILE=release",
"-e",
Expand Down

0 comments on commit d433776

Please sign in to comment.