7780cf1353368250e045ffb82ab81450a6c235d5 — Elias Naur 28 days ago 6433cb2
cmd/gio: use path.Base for Go import paths

Go import paths always use forward slashes as separators.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 2 insertions(+), 1 deletions(-)

M cmd/gio/gio.go
M cmd/gio/gio.go => cmd/gio/gio.go +2 -1
@@ 13,6 13,7 @@ "io/ioutil"
  	"os"
  	"os/exec"
+ 	"path"
  	"path/filepath"
  	"strings"
  


@@ 74,7 75,7 @@ if err != nil {
  		errorf("gio: %v", err)
  	}
- 	name = filepath.Base(name)
+ 	name = path.Base(name)
  	dir, err := runCmd(exec.Command("go", "list", "-f", "{{.Dir}}", pkg))
  	if err != nil {
  		errorf("gio: %v", err)