-
Notifications
You must be signed in to change notification settings - Fork 1
feat: ACI-2805 Add flag to follow xcode symlinks #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| ddPath, | ||
| xcodeCachePath, | ||
| followSymlinks, | ||
| logger, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal/xcode/file_group_info.go
Outdated
|
|
||
| return nil | ||
| if fileInfo.Mode()&os.ModeSymlink != 0 { | ||
| return collectSymlink(path, fgi, followSymlinks, rootDir, logger) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get it, if a file is symlink, we call collectSymlink on it. But collectSymlink will call collectFileMetadata on the file if it's not a directory. Do I miss something on how the circular method calls are broken?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
collectSymlink() will call resolveSymlink() to resolve the symlink and collect the file info on that target. The resolution is called recursively until we find a regular file, so collectFileMetadata() is called again with the target files only
No description provided.