From d3e40768c2e5a5d3f33b55dddd1d58283bb00ca8 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Fri, 4 Aug 2023 08:44:21 +0200 Subject: [PATCH] fix assign follow symlink flag Co-authored-by: Jason Song --- pkg/runner/expression.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/runner/expression.go b/pkg/runner/expression.go index 4dc3504959b..412d1c027ce 100644 --- a/pkg/runner/expression.go +++ b/pkg/runner/expression.go @@ -173,6 +173,7 @@ func getHashFilesFunction(ctx context.Context, rc *RunContext) func(v []reflect. if i == 0 { if strings.HasPrefix(s, "--") { if strings.EqualFold(s, "--follow-symbolic-links") { + followSymlink = true continue } return "", fmt.Errorf("Invalid glob option %s, available option: '--follow-symbolic-links'", s)