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

Improve displayVersion and scmRevision description exposed by PluginContextSerializer #7934

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dfed
Copy link

@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
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

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