mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
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>
This commit is contained in:
+2
-1
@@ -13,6 +13,7 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
@@ -74,7 +75,7 @@ func main() {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user