Skip to content

Conversation

chadseld
Copy link

@chadseld chadseld commented Apr 8, 2025

Moved location of newline character generation so that the file contents diff check inside write_codable_file will work as expected.

The Codable.swift file in only supposed to be written to disk if it has changed. Currently, the Codeable.swift file is always being written to disk. This causes problems with Xcode previews. When the typeshare script is run as part of an Xcode preview build, Xcode detects a file change (Codeable.swift) and restarts the compilation in an endless loop.

A previous fix to this bug was made/attempted here: #205.

…nts diff check inside write_codable_file will work as expected.
@chadseld chadseld marked this pull request as draft April 8, 2025 15:23
@chadseld chadseld marked this pull request as ready for review April 8, 2025 15:32
@chadseld
Copy link
Author

chadseld commented Apr 9, 2025

Should the Clippy errors be fixed on a separate PR? They are not due to changes made here.

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.

1 participant