Skip to content

soundness/docs: Add newline before package manifest snippet #79

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

Conversation

simonjbeaumont
Copy link
Contributor

@simonjbeaumont simonjbeaumont commented Dec 20, 2024

Motivation

The documentation check appends a snippet to the package manifest. When the pacakge manifest doesn't end with a proper newline and happens to end with a comment (as many might with the standard cross-repo comment-fenced package manifest block), it can fail.

Here's an example failed run: https://github.com/swift-server/swift-openapi-async-http-client/actions/runs/12427995650/job/34698796376?pr=44#step:5:219.

Modifications

Simply insert a newline before the snippet.

Result

No functional change, but more defensive against some package manifests.

@simonjbeaumont simonjbeaumont requested a review from a team as a code owner December 20, 2024 08:31
@FranzBusch FranzBusch merged commit d20a348 into swiftlang:main Dec 20, 2024
24 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.

4 participants