More filepath -> path
parent
f4db16ff6e
commit
b08de8e0f5
|
|
@ -20,10 +20,11 @@ import (
|
|||
"bytes"
|
||||
"crypto/tls"
|
||||
|
||||
// WARNING: Do not use filepath here unless you want bizarre paths to be used in Windows
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
|
||||
// WARNING: Do not use path/filepath in this package unless you want bizarre Windows paths
|
||||
"path"
|
||||
"runtime"
|
||||
"strings"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ import (
|
|||
"crypto"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
|
||||
"github.com/golang/glog"
|
||||
|
|
@ -93,7 +92,7 @@ func CacheBinary(binary, version, osName, archName string) (string, error) {
|
|||
|
||||
// CopyBinary copies a locally cached binary to the guest VM
|
||||
func CopyBinary(cr command.Runner, src string, dest string) error {
|
||||
f, err := assets.NewFileAsset(src, filepath.Dir(dest), filepath.Base(dest), "0755")
|
||||
f, err := assets.NewFileAsset(src, path.Dir(dest), path.Base(dest), "0755")
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "new file asset")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue