cache-archiver reports an overinflated number of matched files
Summary
gitlab-runner cache-archiver
reports an overinflated number of matched files.
Steps to reproduce
Have a file structure like the following:
- Directory
path0
- Directory
path1
- Directory
path2
- Directory
path3
file1
file2
file3
file4
file5
file6
file7
file8
- Directory
- Directory
- Directory
Then run this:
gitlab-runner-windows-amd64.exe cache-archiver --verbose --file archive.zip --path path0/**
Actual behavior
I receive this output:
Runtime platform arch=amd64 os=windows pid=6388 revision=b37d3da9 version=14.3.0
path0/**: found 38 matching files and directories
No URL provided, cache will be not uploaded to shared cache server. Cache will be stored only locally.
Expected behavior
It should display "found 12 matching files and directories" (8 files + 4 directories).
Environment description
No build logs or config.toml
applicable, since it also happens when launching gitlab-runner
directly.
Used GitLab Runner version
Version: 14.3.0
Git revision: b37d3da9
Git branch: 14-3-stable
GO version: go1.13.8
Built: 2021-09-21T14:15:16+0000
OS/Arch: windows/amd64