Skip to content

Add trailing newlines consistently in InitPackage.swift #7013

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 1 commit into from
Oct 17, 2023

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Oct 17, 2023

swift package init creates files without a trailing newline, so if you create a git repository when instantiating the template, there is an immediate diff.

Resolves rdar://111333801.

New Swift package creates file without newline, so if you create a git repository when instantiating the template, there is an immediate diff.

Resolves rdar://111333801.
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov self-assigned this Oct 17, 2023
@MaxDesiatov MaxDesiatov enabled auto-merge (squash) October 17, 2023 14:33
@MaxDesiatov MaxDesiatov changed the title Add final newlines consistently in InitPackage.swift Add trailing newlines consistently in InitPackage.swift Oct 17, 2023
@MaxDesiatov MaxDesiatov disabled auto-merge October 17, 2023 14:34
@MaxDesiatov MaxDesiatov enabled auto-merge (squash) October 17, 2023 14:34
@DougGregor
Copy link
Member

@swift-ci clean test windows

@MaxDesiatov MaxDesiatov merged commit d4a961b into main Oct 17, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/newlines-in-templates branch October 17, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants