Skip to content
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

TSCBasic: deprecate localFileSystem setter #401

Merged
merged 3 commits into from
Apr 15, 2023

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Mar 15, 2023

This global should never be mutable, especially when using concurrency.

This global should never be mutable, especially when using concurrency. This is also a good opportunity to use `some` instead of `any` existential (the default), since its type is known at compile-time.
@MaxDesiatov MaxDesiatov self-assigned this Mar 18, 2023
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov changed the title TSCBasic: deprecate localFileSystem setter, use some TSCBasic: deprecate localFileSystem setter Apr 13, 2023
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) April 13, 2023 21:17
return _localFileSystem
}

@available(*, deprecated, message: "This global should never be mutable and is supposed to be read-only")
Copy link
Contributor

@tomerd tomerd Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a date here in a comment so we know when this was first deprecated and can delete once enough time has passed

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

3 similar comments
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov merged commit fef37ec into main Apr 15, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/use-some-filesystem branch April 18, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants