Skip to content

Commit

Permalink
fix assign follow symlink flag
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Song <[email protected]>
  • Loading branch information
ChristopherHX and wolfogre authored Aug 4, 2023
1 parent af32fab commit d3e4076
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/runner/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 177 in pkg/runner/expression.go

View check run for this annotation

Codecov / codecov/patch

pkg/runner/expression.go#L163-L177

Added lines #L163 - L177 were not covered by tests
}
return "", fmt.Errorf("Invalid glob option %s, available option: '--follow-symbolic-links'", s)

Check warning on line 179 in pkg/runner/expression.go

View check run for this annotation

Codecov / codecov/patch

pkg/runner/expression.go#L179

Added line #L179 was not covered by tests
Expand Down

0 comments on commit d3e4076

Please sign in to comment.