Skip to content

Hide CLI commands API with package access control #7381

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

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Feb 29, 2024

Known clients of SwiftPM have not adopted these CLI APIs that were previously marked as public. To prevent accidental adoption by clients in the future, we should use package access control instead.

Also replaced remaining usages of @_spi(SwiftPMInternal) with package across all of our codebase.

To prevent accidental adoption of these APIs as `public`, we should use `package` access control instead. Also replaced remaining usages of `@_spi(SwiftPMInternal)` with `package` across all of our codebase.
@MaxDesiatov MaxDesiatov added the public API Changes to the public API of SwiftPM label Feb 29, 2024
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) February 29, 2024 09:51
@MaxDesiatov MaxDesiatov disabled auto-merge February 29, 2024 09:56
@MaxDesiatov MaxDesiatov enabled auto-merge (squash) February 29, 2024 09:56
@MaxDesiatov MaxDesiatov merged commit 9337c5e into main Feb 29, 2024
@MaxDesiatov MaxDesiatov deleted the maxd/package-all-the-things branch February 29, 2024 17:15
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
Known clients of SwiftPM have not adopted these CLI APIs that were
previously marked as `public`. To prevent accidental adoption by clients
in the future, we should use `package` access control instead.

Also replaced remaining usages of `@_spi(SwiftPMInternal)` with
`package` across all of our codebase.
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
Known clients of SwiftPM have not adopted these CLI APIs that were
previously marked as `public`. To prevent accidental adoption by clients
in the future, we should use `package` access control instead.

Also replaced remaining usages of `@_spi(SwiftPMInternal)` with
`package` across all of our codebase.
xedin added a commit to xedin/swift-package-manager that referenced this pull request May 15, 2024
xedin added a commit to xedin/swift-package-manager that referenced this pull request May 15, 2024
xedin added a commit that referenced this pull request May 16, 2024
This change reverts the following PRs and makes it possible to use
public and @_spi APIs again.

- #7365
- #7372
- #7381
- #7387
- #7434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
public API Changes to the public API of SwiftPM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants