Skip to content

Commit e9b3867

Browse files
authored
Merge pull request #230 from ipfs/schomatis/fix/cli/parse/extract-dir-before-base
fix(cli/parse): extract dir before name
2 parents 47e5b7e + ebff068 commit e9b3867

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "v0.8.0"
2+
"version": "v0.8.1"
33
}

0 commit comments

Comments
 (0)