From 9b0293d9eabbe5d9a2965bee067a963f5a014d7f Mon Sep 17 00:00:00 2001 From: yxxhero <11087727+yxxhero@users.noreply.github.com> Date: Tue, 5 Jul 2022 16:50:43 +0800 Subject: [PATCH] fix within func issue (#209) Signed-off-by: yxxhero --- pkg/app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/app.go b/pkg/app/app.go index 5c76672a..276cc5c7 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -672,7 +672,7 @@ func (a *App) visitStateFiles(fileOrDir string, opts LoadOpts, do func(string, s return errAbsDir } err := a.within(absd, func() error { - return do(file, dir) + return do(file, absd) }) if err != nil { return appError(fmt.Sprintf("in %s/%s", dir, file), err)