Skip to content

Commit

Permalink
Merge pull request #6 from Anthony-Dong/dev
Browse files Browse the repository at this point in the history
fix: run task lookup abs file
  • Loading branch information
Anthony-Dong committed Nov 27, 2023
2 parents 4261765 + 7dd0d09 commit cfab5ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command/run/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ func (r *TaskRunner) LookupIncludeFile(cur string, filename string, includes []s

func (r *TaskRunner) LookupFile(filename string, includes []string) (string, error) {
files := make([]string, 0)
if filepath.IsAbs(filename) {
files = append(files, filename)
}
for _, elem := range includes {
files = append(files, filepath.Join(elem, filename))
}
Expand Down

0 comments on commit cfab5ea

Please sign in to comment.