Skip to content

Commit cc37dc7

Browse files
committed
Fix error: Unable to export dependencies to vendor directory: Error moving files: exit status 1. output: Access is denied. 0 dir(s) moved.
1 parent 245cace commit cc37dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

path/winbug.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func CustomRename(o, n string) error {
4848
// Handking windows cases first
4949
if runtime.GOOS == "windows" {
5050
msg.Debug("Detected Windows. Moving files using windows command")
51-
cmd := exec.Command("cmd.exe", "/c", "move", o, n)
51+
cmd := exec.Command("cmd.exe", "/c", "xcopy /s/y", o, n+"\\")
5252
output, err := cmd.CombinedOutput()
5353
if err != nil {
5454
return fmt.Errorf("Error moving files: %s. output: %s", err, output)

0 commit comments

Comments
 (0)