From 7dd0d09f822eec3603313543576035043f6daeb7 Mon Sep 17 00:00:00 2001 From: anthony-dong Date: Mon, 27 Nov 2023 17:50:40 +0800 Subject: [PATCH] fix: run task lookup abs file --- command/run/command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/run/command.go b/command/run/command.go index d52d9ce..846f5c3 100644 --- a/command/run/command.go +++ b/command/run/command.go @@ -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)) }