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.
2 parents 431cfdd + 4bf724f commit 4684237Copy full SHA for 4684237
index.js
@@ -51,9 +51,9 @@ class RustPlugin {
51
}
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");
+ const cargoHome = process.env.CARGO_HOME || (path.join(homedir(), ".cargo"));
+ const cargoRegistry = path.join(cargoHome, "registry");
+ const cargoDownloads = path.join(cargoHome, "git");
57
const defaultArgs = [
58
'run',
59
'--rm',
0 commit comments