From 24ffd9cc599591600c59ebce8db4b013e9b768aa Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Sat, 31 Jan 2026 17:20:19 -0500 Subject: [PATCH] refactor: quoting style in .goreleaser.yml Updated the .goreleaser.yml file to consistently use single quotes for string values, improving readability and maintaining YAML style consistency across build, archive, and checksum configurations. Signed-off-by: Ryan Johnson --- .goreleaser.yml | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ef9b7522..7b9ba8bf 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -33,50 +33,50 @@ before: builds: - id: plugin-check - mod_timestamp: "{{ .CommitTimestamp }}" + mod_timestamp: '{{ .CommitTimestamp }}' flags: - -trimpath ldflags: - - "-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= " + - '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= ' goos: - linux goarch: - amd64 - binary: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}" + binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}' - id: linux-builds - mod_timestamp: "{{ .CommitTimestamp }}" + mod_timestamp: '{{ .CommitTimestamp }}' flags: - -trimpath ldflags: - - "-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= " + - '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= ' goos: - linux goarch: - amd64 - - "386" + - '386' - arm64 ignore: - - goos: linux # Already built during plugin-check. + - goos: linux goarch: amd64 - binary: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}" + binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}' - id: darwin-builds - mod_timestamp: "{{ .CommitTimestamp }}" + mod_timestamp: '{{ .CommitTimestamp }}' flags: - -trimpath ldflags: - - "-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= " + - '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= ' goos: - darwin goarch: - amd64 - arm64 - binary: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}" + binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}' - id: other-builds - mod_timestamp: "{{ .CommitTimestamp }}" + mod_timestamp: '{{ .CommitTimestamp }}' flags: - -trimpath ldflags: - - "-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= " + - '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= ' goos: - netbsd - openbsd @@ -85,7 +85,7 @@ builds: - solaris goarch: - amd64 - - "386" + - '386' - arm ignore: - goos: windows @@ -93,18 +93,18 @@ builds: - goos: solaris goarch: arm - goos: solaris - goarch: "386" - binary: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}" + goarch: '386' + binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}' archives: - id: default - name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}" + name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}' files: - - "LICENSE.txt" - formats: ["zip"] + - 'LICENSE.txt' + formats: ['zip'] checksum: - name_template: "{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS" + name_template: '{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS' algorithm: sha256 signs: