Skip to content

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

Merged
seanaye merged 2 commits into
mainfrom
dont-write-codable-if-not-necessary
Nov 12, 2024
Merged

Only overwrite Codable.swift if it has changed.#205
seanaye merged 2 commits into
mainfrom
dont-write-codable-if-not-necessary

Conversation

@kevinbhayes

Copy link
Copy Markdown
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.

@darrell-roberts darrell-roberts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Couple of changes requested.

Comment thread core/src/language/swift.rs Outdated
Comment thread core/src/language/swift.rs Outdated

@darrell-roberts darrell-roberts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants