-
Notifications
You must be signed in to change notification settings - Fork 42
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
New builtin schema: compose-spec #513
Comments
Yeah, this one seems to be a good inclusion; happy to take a PR for it! Thanks for volunteering! The main thing which I think needs discussion is the filename pattern. "fileMatch": [
"**/docker-compose.yml",
"**/docker-compose.yaml",
"**/docker-compose.*.yml",
"**/docker-compose.*.yaml",
"**/compose.yml",
"**/compose.yaml",
"**/compose.*.yml",
"**/compose.*.yaml"
], Here's my opinion on what should be in a PR for this, for the pattern:
So I'm expecting for the catalog we get... "files": [
r"([^/]*/)*docker-compose\.(yaml|yml)",
r"([^/]*/)*compose\.(yaml|yml)",
] And that should render in the hook config as files: >
(?x)^(
([^/]*/)*docker-compose\.(yaml|yml)|
([^/]*/)*compose\.(yaml|yml)
)$ I'm happy to talk through the pattern more, but I tried to write down everything there! As one other note, I'd like to add a copy of the compose-spec license to the licenses in the vendored schemas dir. Since we're redistributing a bit of their code, I think it's a good habit to include it (though I admit to being unclear on what our actual obligation is on this front). |
Thanks for the feedback! That all makes sense. I think that pattern is missing, for example, |
Would it make sense to add the schema for
docker-compose.yml
files?I think the regex for these files is something like
at least following VSCode's filename patterns1
The spec lives in https://github.com/compose-spec/compose-spec/blob/main/schema/compose-spec.json and seems to be well-maintained.
EDIT: Forgot to mention the schema is also in schemastore but just references the one in compose-spec repo.
Happy to work on a PR following the contrib doc if you're open to it.
Thanks for your work on this project!
Footnotes
https://github.com/microsoft/vscode/blob/37249cba4aaffc7ea0ec2a9e7c2ae2ccb595a485/extensions/yaml/package.json#L23-L30 ↩
The text was updated successfully, but these errors were encountered: