Skip to content

Commit

Permalink
Fix error: Unable to export dependencies to vendor directory: Error m…
Browse files Browse the repository at this point in the history
…oving files: exit status 1. output: Access is denied. 0 dir(s) moved.
  • Loading branch information
Ticore-Xn committed Jul 31, 2017
1 parent 245cace commit cc37dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path/winbug.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func CustomRename(o, n string) error {
// Handking windows cases first
if runtime.GOOS == "windows" {
msg.Debug("Detected Windows. Moving files using windows command")
cmd := exec.Command("cmd.exe", "/c", "move", o, n)
cmd := exec.Command("cmd.exe", "/c", "xcopy /s/y", o, n+"\\")
output, err := cmd.CombinedOutput()
if err != nil {
return fmt.Errorf("Error moving files: %s. output: %s", err, output)
Expand Down

1 comment on commit cc37dc7

@Imissyou1314
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is also has the bug! my os is windows 10

Please sign in to comment.