Skip to content

Commit 690a7ce

Browse files
committed
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 <ryan.johnson@broadcom.com>
1 parent 87477d2 commit 690a7ce

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.goreleaser.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,50 +33,50 @@ before:
3333

3434
builds:
3535
- id: plugin-check
36-
mod_timestamp: "{{ .CommitTimestamp }}"
36+
mod_timestamp: '{{ .CommitTimestamp }}'
3737
flags:
3838
- -trimpath
3939
ldflags:
40-
- "-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= "
40+
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
4141
goos:
4242
- linux
4343
goarch:
4444
- amd64
45-
binary: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}"
45+
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
4646
- id: linux-builds
4747
mod_timestamp: "{{ .CommitTimestamp }}"
4848
flags:
4949
- -trimpath
5050
ldflags:
51-
- "-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= "
51+
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
5252
goos:
5353
- linux
5454
goarch:
5555
- amd64
56-
- "386"
56+
- '386'
5757
- arm64
5858
ignore:
59-
- goos: linux # Already built during plugin-check.
59+
- goos: linux
6060
goarch: amd64
61-
binary: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}"
61+
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
6262
- id: darwin-builds
63-
mod_timestamp: "{{ .CommitTimestamp }}"
63+
mod_timestamp: '{{ .CommitTimestamp }}'
6464
flags:
6565
- -trimpath
6666
ldflags:
67-
- "-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= "
67+
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
6868
goos:
6969
- darwin
7070
goarch:
7171
- amd64
7272
- arm64
73-
binary: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}"
73+
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
7474
- id: other-builds
7575
mod_timestamp: "{{ .CommitTimestamp }}"
7676
flags:
7777
- -trimpath
7878
ldflags:
79-
- "-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= "
79+
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
8080
goos:
8181
- netbsd
8282
- openbsd
@@ -85,26 +85,26 @@ builds:
8585
- solaris
8686
goarch:
8787
- amd64
88-
- "386"
88+
- '386'
8989
- arm
9090
ignore:
9191
- goos: windows
9292
goarch: arm
9393
- goos: solaris
9494
goarch: arm
9595
- goos: solaris
96-
goarch: "386"
97-
binary: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}"
96+
goarch: '386'
97+
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
9898

9999
archives:
100100
- id: default
101-
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}"
101+
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
102102
files:
103103
- "LICENSE.txt"
104-
formats: ["zip"]
104+
formats: ['zip']
105105

106106
checksum:
107-
name_template: "{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS"
107+
name_template: '{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS'
108108
algorithm: sha256
109109

110110
signs:

0 commit comments

Comments
 (0)