Skip to content

Commit 6ca5341

Browse files
Timothy MacDonaldafiune
authored andcommitted
fix(cdk): component install fails
Fix file moves across devices causing component install to fail Signed-off-by: Timothy MacDonald <[email protected]>
1 parent 0b65cd9 commit 6ca5341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lwcomponent/component.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (s State) Install(component *Component, version string) error {
290290
//if the component was not an archive then nothing was created in the staging dir
291291
//we must move it over
292292
if _, err := os.Stat(stagingPath); errors.Is(err, os.ErrNotExist) {
293-
err = os.Rename(downloadPath, stagingPath)
293+
err = file.Copy(downloadPath, stagingPath)
294294
if err != nil {
295295
return err
296296
}

0 commit comments

Comments
 (0)