Skip to content

Commit 1139464

Browse files
committed
fix(cli/parse): extract dir before name
1 parent 47e5b7e commit 1139464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ func parseArgs(req *cmds.Request, root *cmds.Command, stdin *os.File) error {
329329
return err
330330
}
331331

332-
fpath = filepath.Base(fpath)
333332
importDir := filepath.Dir(fpath)
333+
fpath = filepath.Base(fpath)
334334
prevDir, ok := fileImportDirName[fpath]
335335
if !ok {
336336
fileImportDirName[fpath] = importDir

0 commit comments

Comments
 (0)