-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Consume most recent task-lib in copyfiles #9390
Conversation
@@ -16,7 +16,11 @@ let flattenFolders: boolean = tl.getBoolInput('flattenFolders', false); | |||
// determine the relative path of each found file (substring using sourceFolder.length). | |||
sourceFolder = path.normalize(sourceFolder); | |||
|
|||
let allPaths: string[] = tl.find(sourceFolder); // default find options (follow sym links) | |||
// Default find options except for allowing broken sym links. |
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.
Does this change behavior or keep it the same? Do we have tests to cover this?
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.
The only difference in behavior is that it allows broken symlinks (doesn't throw when it encounters one). We don't have coverage here, we do in the task-lib itself though. IMO it doesn't feel like this task's responsibility to test that specific functionality and testing broken symlinks is kinda gross so I think its fine, thoughts?
Closing this one for a bit since the code has shifted since its been opened, need to readdress |
While all other task-lib functions used by DeleteFilesV1 haven't changed significantly, tl.match() has (it used to use semver and now it does its own matching). I think this should resolve #9231 and resolve #9046
EDIT: Also allows broken symlinks, should fix #9768 as well