Skip to content

Commit e1a67cc

Browse files
fix: auto-fix test failures from Test all (Linux) (#79)
Co-authored-by: kevinwang5658 <20214115+kevinwang5658@users.noreply.github.com>
1 parent c017792 commit e1a67cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/resources/vscode/vscode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class VscodeResource extends Resource<VscodeConfig> {
191191
const vscodeDebPath = path.join(tmpDir, 'vscode.deb');
192192

193193
try {
194-
await FileUtils.downloadFile(downloadLink, vscodeDebPath);
194+
await $.spawn(`curl -fsSL --retry 5 --retry-delay 3 --retry-connrefused "${downloadLink}" -o "${vscodeDebPath}"`);
195195
await $.spawn('apt-get update -y', { requiresRoot: true, env: { DEBIAN_FRONTEND: 'noninteractive' } });
196196
await $.spawn('debconf-set-selections <<< "code code/add-microsoft-repo boolean true"', { requiresRoot: true });
197197
await $.spawn('apt-get install ./vscode.deb -y --fix-missing', { cwd: tmpDir, requiresRoot: true, env: { DEBIAN_FRONTEND: 'noninteractive', NEEDRESTART_MODE: 'a' } });

0 commit comments

Comments
 (0)