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

deprecate static APIs with inefficient defaults #3657

Merged
merged 2 commits into from
Aug 11, 2021

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Aug 10, 2021

motivation: configuration work has pointed out that some of the static APIs use inefficient defaults

changes:

  • deprecate Workspace.create, Workspace.loadRootGraph, PackageBuilder.loadRootPackage, ManifestLoader.loadRootManifest and replace them with instance methods on workspace
  • add a simple constructor to workspace, that uses the host toolchain by default
  • adjust call-sites, test and examples

@tomerd
Copy link
Contributor Author

tomerd commented Aug 10, 2021

needs #3656 first

@tomerd tomerd force-pushed the refactor/static-apis branch from 731449c to 06d1ac5 Compare August 10, 2021 06:37
@tomerd
Copy link
Contributor Author

tomerd commented Aug 10, 2021

@swift-ci please smoke test

motivation: configuration work has pointed out that some of the static APIs (which are questionable to begin with) use inefficient defaults

changes:
* deprecate Workspace.create,  Workspace.loadRootGraph, PackageBuilder.loadRootPackage, ManifestLoader.loadRootManifest and replace them with instance methods on workspace
* add a simple constructor to workspace, that uses the host toolchain by default
* adjust call-sites, test and examples
@tomerd tomerd force-pushed the refactor/static-apis branch from 06d1ac5 to bfa5ae9 Compare August 10, 2021 18:09
@tomerd
Copy link
Contributor Author

tomerd commented Aug 10, 2021

@swift-ci please smoke test

@abertelrud abertelrud self-requested a review August 11, 2021 00:56
@tomerd
Copy link
Contributor Author

tomerd commented Aug 11, 2021

@swift-ci please smoke test

@tomerd tomerd merged commit 7cb50e4 into swiftlang:main Aug 11, 2021
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