-
Notifications
You must be signed in to change notification settings - Fork 314
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
Support for .yaml file endings #6848
Comments
If we did this for |
I remember us having a discussion about this, although the spec preferred file ending is.yaml the community especially within CI/CD tools choose to standardize .yml file ending see: Examples:
|
As I raised the topic initially I just wanted to say that I understand your points. The issue was, that we didn't realize that the ort file we provided was not recognized by the tool at all (because of the wrong file suffix). Probably it would be sufficient to explicitly mention this in the documentation and/or log a warning if no ort file was found. |
Isn't https://github.com/oss-review-toolkit/ort#repository-configuration-file sufficient / explicit enough? |
I believe it may be useful to add a check for *.ort.yaml files during a project scan which throws a technical issue with a how-to-fix explaining to the use .yml is the extension to use with a reference to https://github.com/oss-review-toolkit/ort/blob/main/docs/config-file-ort-yml.md @hanna-modica @bjoern-arnold Would this would for you both? Let us know so we can update this issue accordingly. |
However, the effort to implement this would be pretty much the same as do supporting |
At least it would remove the overhead to add this file ending support to all the other files. What is you opinion @bjoern-arnold? |
Yes, that sounds good. Probably it would even be better to scan for the absence of "*.ort.yml" and report a warning if it does not exist, together with a reference to the documentation. Assuming that virtually any project requires a project specific configuration file, of course. |
Discussed in the ORT community call of April 27th
|
Closed as part of backlog grooming. Feel free to comment if you would like to contribute to this. |
Note that ort/model/src/main/kotlin/FileFormat.kt Lines 41 to 44 in bca9748
already knows how to treat |
ORT does not detect files with .yaml as ending (e.g. .ort.yaml). According to YAML FAQs [1] it is the preferred official file ending. Supporting it would mean less chances for errors.
[1] https://yaml.org/faq.html
The text was updated successfully, but these errors were encountered: