From 979e3950d7671399cffd3acac455063777438597 Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Thu, 15 Sep 2022 01:21:03 -0300 Subject: [PATCH 1/2] fix: yaml-lang-server modelines in init config --- .goreleaser.yaml | 5 +++++ internal/static/config.go | 4 ++++ www/docs/customization/index.md | 12 ++++++++++++ 3 files changed, 21 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2fb6481e059..30877b2f902 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -318,3 +318,8 @@ announce: discord: enabled: true message_template: 'GoReleaser {{ .Tag }} is out! Check it out: https://github.com/goreleaser/goreleaser/releases/tag/{{ .Tag }}' + + +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=4 sw=4 tw=0 fo=jcroql + diff --git a/internal/static/config.go b/internal/static/config.go index 859b9121a75..34a217dbc73 100644 --- a/internal/static/config.go +++ b/internal/static/config.go @@ -36,4 +36,8 @@ changelog: exclude: - '^docs:' - '^test:' + +# modelines, feel free to remove those if you don't want/use them: +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=4 sw=4 tw=0 fo=cnqoj ` diff --git a/www/docs/customization/index.md b/www/docs/customization/index.md index 5c9c9b22e05..e412d8ad964 100644 --- a/www/docs/customization/index.md +++ b/www/docs/customization/index.md @@ -15,11 +15,23 @@ GoReleaser also has a [jsonschema][] file which you can use to have better edito https://goreleaser.com/static/schema.json ``` + You can also specify it in your `.goreleaser.yml` config file by adding a + comment like the following: + ```yaml + # yaml-language-server: $schema=https://goreleaser.com/static/schema.json + ``` + === "Pro" ```sh https://goreleaser.com/static/schema-pro.json ``` + You can also specify it in your `.goreleaser.yml` config file by adding a + comment like the following: + ```yaml + # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json + ``` + You can also generate it for your specific version using the [`goreleaser jsonschema`][schema] command. [jsonschema]: http://json-schema.org/draft/2020-12/json-schema-validation.html From 956b75be359446b6437b8fa025668bfe8ba4a1b6 Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Thu, 15 Sep 2022 01:22:09 -0300 Subject: [PATCH 2/2] fix: using the actual correct values --- .goreleaser.yaml | 2 +- internal/static/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 30877b2f902..bb1482044cd 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -321,5 +321,5 @@ announce: # yaml-language-server: $schema=https://goreleaser.com/static/schema.json -# vim: set ts=4 sw=4 tw=0 fo=jcroql +# vim: set ts=2 sw=2 tw=0 fo=jcroql diff --git a/internal/static/config.go b/internal/static/config.go index 34a217dbc73..7538744d117 100644 --- a/internal/static/config.go +++ b/internal/static/config.go @@ -39,5 +39,5 @@ changelog: # modelines, feel free to remove those if you don't want/use them: # yaml-language-server: $schema=https://goreleaser.com/static/schema.json -# vim: set ts=4 sw=4 tw=0 fo=cnqoj +# vim: set ts=2 sw=2 tw=0 fo=cnqoj `