From 3655cc3e224796b4d86e901404a0ebc6efe0054a Mon Sep 17 00:00:00 2001 From: Ken Hamada Date: Mon, 10 Jun 2024 08:16:59 +0900 Subject: [PATCH] chore: fix goreleaser config file to follow deprecation notice --- .goreleaser.yml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 4faaaf0e..079d2af9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,7 @@ +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com +version: 2 builds: - env: @@ -9,13 +11,13 @@ builds: - windows - darwin goarch: - - 386 + - '386' - amd64 - arm - arm64 ignore: - goos: darwin - goarch: 386 + goarch: '386' id: jsonnet main: ./cmd/jsonnet @@ -30,13 +32,13 @@ builds: - windows - darwin goarch: - - 386 + - '386' - amd64 - arm - arm64 ignore: - goos: darwin - goarch: 386 + goarch: '386' id: jsonnetfmt main: ./cmd/jsonnetfmt @@ -49,13 +51,13 @@ builds: - windows - darwin goarch: - - 386 + - '386' - amd64 - arm - arm64 ignore: - goos: darwin - goarch: 386 + goarch: '386' id: jsonnet-lint main: ./cmd/jsonnet-lint @@ -68,13 +70,13 @@ builds: - windows - darwin goarch: - - 386 + - '386' - amd64 - arm - arm64 ignore: - goos: darwin - goarch: 386 + goarch: '386' id: jsonnet-deps main: ./cmd/jsonnet-deps @@ -82,12 +84,14 @@ builds: archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - id: foo + name_template: >- + {{- .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} checksum: name_template: "checksums.txt"