Skip to content

Conversation

@BrianMcBrayer
Copy link
Contributor

Overview

In .NET 6, additional symlinks support was added to FileSystemInfo. This PR adds at least one of those properties here, the LinkTarget property.

See #789

We need to discuss the mock portion of this though as I'm not sure how this codebase expects that.

@BrianMcBrayer BrianMcBrayer changed the title Add LinkTarget to FileSystemInfo for .NET 6 targets feat: Add LinkTarget to FileSystemInfo for .NET 6 targets Jan 7, 2022
@BrianMcBrayer
Copy link
Contributor Author

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.

Copy link
Contributor

@fgreinacher fgreinacher left a 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

@BrianMcBrayer
Copy link
Contributor Author

Thank you! I'll try to update it all today

Copy link
Contributor Author

@BrianMcBrayer BrianMcBrayer left a 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

@BrianMcBrayer BrianMcBrayer marked this pull request as ready for review January 8, 2022 16:35
@BrianMcBrayer
Copy link
Contributor Author

Note that this PR is pending #791 because of the enhancements that will add to MockFileInfo

Copy link
Contributor

@fgreinacher fgreinacher left a 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!

Brian McBrayer added 3 commits January 10, 2022 10:49
…st snapshots as well. Added mock stubs, but we need to discuss what a better mock implementation would look like.
@BrianMcBrayer BrianMcBrayer force-pushed the bug/add-link-target-file-system-info branch from 2ffb094 to 467a1c4 Compare January 10, 2022 15:52
@BrianMcBrayer
Copy link
Contributor Author

@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.

Copy link
Contributor

@fgreinacher fgreinacher left a 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.

@BrianMcBrayer
Copy link
Contributor Author

@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.

Copy link
Contributor

@fgreinacher fgreinacher left a 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).

@fgreinacher fgreinacher enabled auto-merge (squash) January 11, 2022 20:35
Copy link
Contributor

@fgreinacher fgreinacher left a 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!

@fgreinacher fgreinacher disabled auto-merge January 11, 2022 20:52
@fgreinacher fgreinacher merged commit ba59ebe into TestableIO:main Jan 11, 2022
@BrianMcBrayer BrianMcBrayer deleted the bug/add-link-target-file-system-info branch January 11, 2022 21:23
@github-actions
Copy link

This is addressed in release v16.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state: released Issues that are released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants