-
Notifications
You must be signed in to change notification settings - Fork 256
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
feat: Add LinkTarget
to FileSystemInfo
for .NET 6 targets
#790
feat: Add LinkTarget
to FileSystemInfo
for .NET 6 targets
#790
Conversation
LinkTarget
to FileSystemInfo
for .NET 6 targetsLinkTarget
to FileSystemInfo
for .NET 6 targets
I think that this is probably a minor version bump, since it adds to the API without changing existing APIs? But I'm not sure. |
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.
Thanks a lot @BrianMcBrayer! Left some comments inline
src/System.IO.Abstractions.TestingHelpers/System.IO.Abstractions.TestingHelpers.csproj
Show resolved
Hide resolved
tests/System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryArgumentPathTests.cs
Show resolved
Hide resolved
Thank you! I'll try to update it all today |
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 think I addressed all the comments
Note that this PR is pending #791 because of the enhancements that will add to |
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.
Looking very good @BrianMcBrayer 👍
Happy to merge after you rebased/adapted the Mock implementation!
…st snapshots as well. Added mock stubs, but we need to discuss what a better mock implementation would look like.
2ffb094
to
467a1c4
Compare
@fgreinacher it should be all updated to the latest mocking standards. Let me know if there are any additional changes needed though! Otherwise, I think it's ready to merge after checks pass. |
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.
@BrianMcBrayer Thanks again, I left some minor suggestions. Please also bump the minor version in https://github.com/BrianMcBrayer/System.IO.Abstractions/blob/bug/add-link-target-file-system-info/version.json#L3 to indicate the new feature.
Co-authored-by: Florian Greinacher <florian@greinacher.de>
Co-authored-by: Florian Greinacher <florian@greinacher.de>
Co-authored-by: Florian Greinacher <florian@greinacher.de>
Co-authored-by: Florian Greinacher <florian@greinacher.de>
@fgreinacher I accepted your review comments. Can't believe I didn't indent those things correctly. I think the conditional comments threw me off, which is silly. |
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.
Thanks a ton @BrianMcBrayer and no worries about the minor style issues.
Please bump the minor version in https://github.com/BrianMcBrayer/System.IO.Abstractions/blob/bug/add-link-target-file-system-info/version.json#L3 to indicate the new feature. I would have done this myself but cannot commit to your branch (you can allow that by ticking the "Allow edits and access to secrets by maintainers" checkbox on the right).
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.
Looking great now, thanks for addressing everything so quickly!
This is addressed in release v16.1.1. |
Overview
In .NET 6, additional symlinks support was added to
FileSystemInfo
. This PR adds at least one of those properties here, theLinkTarget
property.See #789
We need to discuss the mock portion of this though as I'm not sure how this codebase expects that.