Skip to content

Improve displayVersion and scmRevision description exposed by PluginContextSerializer #7934

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 2 commits into from
Sep 25, 2024

Conversation

dfed
Copy link
Contributor

@dfed dfed commented Sep 3, 2024

Avoid using String(describing:) to create strings that can be utilized by consumers.

Motivation:

Version and revision strings with Optional(...) in them look less-than-great

Modifications:

Utilized thing?.description ?? "nil" rather than String(describing: thing).

Result:

Improved the readability of displayVersion and scmRevision in a Package's origin: PackagePlugin.PackageOrigin.

@MaxDesiatov
Copy link
Contributor

@swift-ci test

@dschaefer2
Copy link
Member

@swift-ci test

@dschaefer2
Copy link
Member

@swift-ci test windows

@dfed
Copy link
Contributor Author

dfed commented Sep 16, 2024

Anything I can do to get windows tests passing?

@xedin
Copy link
Contributor

xedin commented Sep 16, 2024

@swift-ci please test Windows platform

@xedin
Copy link
Contributor

xedin commented Sep 20, 2024

@swift-ci please test

@xedin
Copy link
Contributor

xedin commented Sep 20, 2024

@swift-ci please clean test

@xedin
Copy link
Contributor

xedin commented Sep 24, 2024

@swift-ci please test

@xedin
Copy link
Contributor

xedin commented Sep 25, 2024

@swift-ci please test Windows platform

@xedin xedin merged commit 740a6c5 into swiftlang:main Sep 25, 2024
5 checks passed
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.

4 participants