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

Remove the GitStatus plugin. #189

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Jan 18, 2024

Remove the GitStatus plugin.

A recent PR on Swift Package Manager (apple/swift-package-manager#7202) added a gitInformation property to the package manifest's Context global. This property contains exactly the information we need from the GitStatus plugin. Let's remove it, then!

Adopting the gitInformation property requires that we drop remaining support for Swift 5.10. We will continue to minimally support it in a separate Package.swift file (where we simply won't have git repo information at build time.) This PR does not strip out other 5.10 support code such as XCTestScaffold.

Resolves rdar://121529847.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan grynspan self-assigned this Jan 18, 2024
@grynspan grynspan added enhancement New feature or request swiftpm-integration Swift Package Manager integration labels Jan 18, 2024
@grynspan
Copy link
Contributor Author

@swift-ci please test

1 similar comment
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan grynspan marked this pull request as draft January 23, 2024 17:50
@grynspan
Copy link
Contributor Author

Because this change requires Swift 5.11, I am holding on to it until we drop remaining support for Swift 5.10.

@grynspan grynspan force-pushed the jgrynspan/remove-git-status-plugin branch from 38ad23b to a0d92fa Compare January 24, 2024 17:30
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan grynspan force-pushed the jgrynspan/remove-git-status-plugin branch from a0d92fa to f67e2d8 Compare January 24, 2024 17:46
A recent PR on Swift Package Manager (apple/swift-package-manager#7202) added a `gitInformation` property to the package manifest's `Context` global. This property contains exactly the information we need from the GitStatus plugin. Let's remove it, then!

Adopting the `gitInformation` property requires that we drop remaining support for Swift 5.10. We will continue to minimally support it in a separate Package.swift file (where we simply won't have git repo information at build time.) This PR does not strip out other 5.10 support code such as `XCTestScaffold`.

Resolves rdar://121529847.
@grynspan grynspan force-pushed the jgrynspan/remove-git-status-plugin branch from f67e2d8 to f2c6e47 Compare January 24, 2024 17:50
@grynspan grynspan marked this pull request as ready for review January 24, 2024 17:50
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan grynspan merged commit 3fa6c43 into main Jan 25, 2024
2 checks passed
@grynspan grynspan deleted the jgrynspan/remove-git-status-plugin branch January 25, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request swiftpm-integration Swift Package Manager integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants