Skip to content

Commit b5cade9

Browse files
committed
path.join for portability
1 parent b669fc9 commit b5cade9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@ class RustPlugin {
5252

5353
runDocker(funcArgs, cargoPackage, binary) {
5454
const home = homedir();
55+
const cargoRegistry = path.join(home, ".cargo/registry");
56+
const cargoDownloads = path.join(home, ".cargo/git");
5557
const defaultArgs = [
5658
'run',
5759
'--rm',
5860
'-t',
5961
'-e', `BIN=${binary}`,
6062
`-v`, `${this.servicePath}:/code`,
61-
`-v`, `${home}/.cargo/registry:/root/.cargo/registry`,
62-
`-v`, `${home}/.cargo/git:/root/.cargo/git`,
63+
`-v`, `${cargoRegistry}:/root/.cargo/registry`,
64+
`-v`, `${cargoDownloads}:/root/.cargo/git`,
6365
];
6466
const customArgs = [];
6567
let cargoFlags = (funcArgs || {}).cargoFlags || this.custom.cargoFlags;

0 commit comments

Comments
 (0)