fix: implement dirlfs to ignore symlinks
All checks were successful
Pre-commit / pre-commit (pull_request) Successful in 5m16s
Update alr-git / changelog (push) Successful in 25s

This commit is contained in:
2025-06-28 01:01:06 +03:00
parent 4b06809a39
commit a83561b6a5
4 changed files with 63 additions and 4 deletions

View File

@ -236,6 +236,7 @@ func TestFindFiles(t *testing.T) {
"opt/app",
"opt/app/internal",
"opt/app/with space",
"usr/bin",
},
filesToCreate: []string{
"usr/share/locale/ru/LC_MESSAGES/yandex-disk.mo",
@ -249,6 +250,10 @@ func TestFindFiles(t *testing.T) {
linkPath: "/opt/app/etc",
targetPath: "/etc",
},
{
linkPath: "/usr/bin/file",
targetPath: "/not-existing",
},
},
expectedOutput: []string{
"./usr/share/locale/ru/LC_MESSAGES/yandex-disk.mo",
@ -259,8 +264,9 @@ func TestFindFiles(t *testing.T) {
"./opt/app/internal/test",
"./opt/app/with space",
"./opt/app/with space/file",
"./usr/bin/file",
},
args: "\"/usr/share/locale/*/LC_MESSAGES/*.mo\" \"/opt/app/**/*\"",
args: "\"/usr/share/locale/*/LC_MESSAGES/*.mo\" \"/opt/app/**/*\" \"/usr/bin/file\"",
expectedError: nil,
},
{