Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loader: be more robust when creating the cached GOROOT
This commit fixes two issues: * Do not try to create the cached GOROOT multiple times in parallel. This may happen in tests and is a waste of resources (and thus speed). * Check for an "access denied" error when trying to rename a directory over an existing directory. On *nix systems, this results in the expected "file exists" error. Unfortunately, Windows gives an access denied. This commit fixes the Windows behavior.
- Loading branch information