We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b669fc9 commit b5cade9Copy full SHA for b5cade9
index.js
@@ -52,14 +52,16 @@ class RustPlugin {
52
53
runDocker(funcArgs, cargoPackage, binary) {
54
const home = homedir();
55
+ const cargoRegistry = path.join(home, ".cargo/registry");
56
+ const cargoDownloads = path.join(home, ".cargo/git");
57
const defaultArgs = [
58
'run',
59
'--rm',
60
'-t',
61
'-e', `BIN=${binary}`,
62
`-v`, `${this.servicePath}:/code`,
- `-v`, `${home}/.cargo/registry:/root/.cargo/registry`,
- `-v`, `${home}/.cargo/git:/root/.cargo/git`,
63
+ `-v`, `${cargoRegistry}:/root/.cargo/registry`,
64
+ `-v`, `${cargoDownloads}:/root/.cargo/git`,
65
];
66
const customArgs = [];
67
let cargoFlags = (funcArgs || {}).cargoFlags || this.custom.cargoFlags;
0 commit comments