Skip to content
This repository was archived by the owner on Jan 23, 2021. It is now read-only.

Commit c2c0205

Browse files
committed
Fix rename across "device" (partition) boundaries
1 parent f733898 commit c2c0205

File tree

2 files changed

+199
-12
lines changed

2 files changed

+199
-12
lines changed

dist/index.js

Lines changed: 198 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function getBuildx(version: string, dockerConfigHome: string): Prom
3333

3434
const pluginPath: string = path.join(pluginsDir, osPlat == 'win32' ? 'docker-buildx.exe' : 'docker-buildx');
3535
core.debug(`Plugin path is ${pluginsDir}`);
36-
fs.renameSync(downloadPath, pluginPath);
36+
fs.copyFileSync(downloadPath, pluginPath);
3737

3838
core.info('🔨 Fixing perms...');
3939
fs.chmodSync(pluginPath, '0755');

0 commit comments

Comments
 (0)