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

Only overwrite Codable.swift if it has changed. #205

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

kevinbhayes
Copy link
Collaborator

typeshare was always writing Codable.swift when generating multiple files. The issue is that the updated modification date on Codable.swift would trigger Xcode to rebuild the module, even if there were no changes.

This PR now checks the contents of Codable.swift and only overwrites it if the contents need changing.

Copy link
Member

@darrell-roberts darrell-roberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of changes requested.

core/src/language/swift.rs Outdated Show resolved Hide resolved
core/src/language/swift.rs Outdated Show resolved Hide resolved
Copy link
Member

@darrell-roberts darrell-roberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@seanaye seanaye merged commit 330a40f into main Nov 12, 2024
6 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.

3 participants