Skip to content

Conversation

@rnro
Copy link
Contributor

@rnro rnro commented Nov 13, 2024

In the event that there is no .spi.yml file, the script currently exits messily:

** Editing Package.swift...
** Checking documentation targets...
usage: yq [-h] [--yaml-output] [--yaml-roundtrip]
          [--yaml-output-grammar-version {1.1,1.2}] [--width WIDTH]
          [--indentless-lists] [--in-place] [--version]
          [jq_filter] [files ...]
yq: error: argument files: can't open '.spi.yml': [Errno 2] No such file or directory: '.spi.yml'
** ✅ Found no documentation issues.

Not having an .spi.yml file is perfectly valid if the repository has no defined documentation targets. This change results in the following behavior:

** No '.spi.yml' found, no documentation targets to check.

In the event that there is no `.spi.yml` file, the script currently exits messily:
```
** Editing Package.swift...
** Checking documentation targets...
usage: yq [-h] [--yaml-output] [--yaml-roundtrip]
          [--yaml-output-grammar-version {1.1,1.2}] [--width WIDTH]
          [--indentless-lists] [--in-place] [--version]
          [jq_filter] [files ...]
yq: error: argument files: can't open '.spi.yml': [Errno 2] No such file or directory: '.spi.yml'
** ✅ Found no documentation issues.
```

Not having an `.spi.yml` file is perfectly valid if the repository has no defined documentation targets. This change results in the following behavior:
```
** No '.spi.yml' found, no documentation targets to check.
```
@rnro rnro requested a review from a team as a code owner November 13, 2024 08:44
@shahmishal shahmishal merged commit 1c8350b into swiftlang:main Nov 13, 2024
9 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.

2 participants