|
@@ -319,6 +319,10 @@ fn main() -> Result<()> {
|
|
|
let update = latest_status.download_path();
|
|
|
|
|
|
println!("Clearing GOROOT {}", go_root);
|
|
|
+
|
|
|
+ // GOROOT might contain GOPATH files
|
|
|
+ // Fix permissions before attempting to remove.
|
|
|
+ recursive_remove_readonly(&go_path)?;
|
|
|
remove_dir_all(&go_root)?;
|
|
|
create_dir_all(&go_root)?;
|
|
|
|