step_download: force copy of local files only on windows

pull/7575/head
Adrien Delorme 7 years ago
parent 200e26ea85
commit 65be2be38b

@ -7,6 +7,7 @@ import (
"fmt" "fmt"
"log" "log"
"os" "os"
"runtime"
"strings" "strings"
"github.com/gofrs/flock" "github.com/gofrs/flock"
@ -93,11 +94,13 @@ var (
) )
func init() { func init() {
getters["file"] = &getter.FileGetter{ if runtime.GOOS == "windows" {
// always copy local files instead of symlinking to fix GH-7534. The getters["file"] = &getter.FileGetter{
// longer term fix for this would be to change the go-getter so that it // always copy local files instead of symlinking to fix GH-7534. The
// can leave the source file where it is & tell us where it is. // longer term fix for this would be to change the go-getter so that it
Copy: true, // can leave the source file where it is & tell us where it is.
Copy: true,
}
} }
} }

Loading…
Cancel
Save