Skip to content

Commit

Permalink
feat(featctl): import supports absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
wfxr authored and t0t07 committed Sep 29, 2021
1 parent 49e09d7 commit 37839bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion featctl/pkg/_import/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ func prepareLightningFiles(option *Option) error {
}

// data file
if err := os.Symlink(filepath.Join("..", option.InputOption.FilePath), pathData); err != nil {
pathInputFileRel, err := filepath.Rel(filepath.Dir(pathData), option.InputOption.FilePath)
if err != nil {
return err
}
if err := os.Symlink(pathInputFileRel, pathData); err != nil {
return err
}

Expand Down

0 comments on commit 37839bd

Please sign in to comment.