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 4487ec1 commit b6efa9cCopy full SHA for b6efa9c
src/commands/rustup.ts
@@ -1,6 +1,7 @@
1
import { promises as fs } from 'fs';
2
import * as path from 'path';
3
import * as process from 'process';
4
+import * as os from 'os';
5
6
import * as semver from 'semver';
7
import * as io from '@actions/io';
@@ -73,8 +74,11 @@ export class RustUp {
73
74
}
75
76
case 'win32': {
77
+ const downloadPath = path.join(os.tmpdir(), "rustup-init.exe");
78
+ await fs.rm(downloadPath, { force: true });
79
const rustupExe = await tc.downloadTool(
80
'https://win.rustup.rs',
81
+ downloadPath,
82
);
83
await exec.exec(rustupExe, args);
84
break;
0 commit comments