More filepath -> path

pull/5224/head
tstromberg 2019-08-28 13:13:52 -07:00
parent f4db16ff6e
commit b08de8e0f5
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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")
}