Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for "access is denied" errors on Windows #984

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kumarharsh
Copy link

  • Using 'robocopy' instead of 'move' to copy files from tmp folder
  • robocopy is more robust and has support for long paths, thus
    providing better experience than xcopy with the same performance.

@mattfarina Glide 0.13 has been giving the access denied errors for some time now. This commit fixes the issue on Windows machines.

- Using 'robocopy' instead of 'move' to copy files from tmp folder
- robocopy is more robust and has support for long paths, thus
  providing better experience than xcopy with the same performance.
@Arbio5zt
Copy link

this fixed on my Windows machines, thanks.

@prdas31
Copy link

prdas31 commented Apr 7, 2018

Is this one solved?
I'm still getting error on Windows 10, 64-bit:

D:\WS\Go\src\github.com\uber\go-torch>glide --version
glide version 0.13.2-dev

The error:

d:\WS\Go>cd %GOPATH%/src/github.com/uber/go-torch

D:\WS\Go\src\github.com\uber\go-torch>glide install
[INFO]  Downloading dependencies. Please wait...
[INFO]  --> Fetching github.com/jessevdk/go-flags
[INFO]  --> Fetching github.com/mattn/go-isatty
[INFO]  --> Fetching golang.org/x/sys
[INFO]  --> Fetching github.com/fatih/color
[INFO]  --> Fetching github.com/mattn/go-colorable
[INFO]  --> Fetching github.com/stretchr/testify
[INFO]  --> Fetching github.com/davecgh/go-spew
[INFO]  --> Fetching github.com/pmezard/go-difflib
[INFO]  Setting references.
[INFO]  --> Setting version for github.com/jessevdk/go-flags to 4e64e4a4e2552194cf594243e23aa9baf3b4297e.
[INFO]  --> Setting version for github.com/pmezard/go-difflib to d8ed2627bdf02c080bf22230dbb337003b7aba2d.
[INFO]  --> Setting version for github.com/stretchr/testify to 2402e8e7a02fc811447d11f881aa9746cdc57983.
[INFO]  --> Setting version for github.com/fatih/color to 42c364ba490082e4815b5222728711b3440603eb.
[INFO]  --> Setting version for github.com/mattn/go-isatty to 30a891c33c7cde7b02a981314b4228ec99380cca.
[INFO]  --> Setting version for github.com/mattn/go-colorable to d228849504861217f796da67fae4f6e347643f15.
[INFO]  --> Setting version for github.com/davecgh/go-spew to 04cdfd42973bb9c8589fd6a731800cf222fde1a9.
[INFO]  --> Setting version for golang.org/x/sys to d75a52659825e75fff6158388dddc6a5b04f9ba5.
[INFO]  Exporting resolved dependencies...
[INFO]  --> Exporting github.com/fatih/color
[INFO]  --> Exporting github.com/mattn/go-colorable
[INFO]  --> Exporting github.com/jessevdk/go-flags
[INFO]  --> Exporting github.com/mattn/go-isatty
[INFO]  --> Exporting github.com/davecgh/go-spew
[INFO]  --> Exporting github.com/pmezard/go-difflib
[INFO]  --> Exporting github.com/stretchr/testify
[INFO]  --> Exporting golang.org/x/sys
[INFO]  Replacing existing vendor dependencies
[ERROR] Unable to export dependencies to vendor directory: Error moving files: exit status 1. output: Access is denied.
        0 dir(s) moved.

Thanks.

@kumarharsh
Copy link
Author

Its not merged, so no. Not resolved yet.
You can clone my fork and build it and place the glide.exe in your path

@prdas31
Copy link

prdas31 commented Apr 8, 2018

Its not merged, so no. Not resolved yet. You can clone my fork and build it and place the glide.exe in your path

Thanks.

@linquize
Copy link

linquize commented Dec 2, 2018

When will merge this fix?

@dogancelik
Copy link

Can you merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants