@@ -96,6 +96,13 @@ builds:
96
96
ldflags :
97
97
- -s -w -X github.com/sixafter/nanoid-cli/cmd/version.version={{ .Version }} -X github.com/sixafter/nanoid-cli/cmd/version.gitCommitID={{ .Env.X_BUILD_COMMIT }}
98
98
99
+ # Set the modified timestamp on the output binary, typically
100
+ # you would do this to ensure a build was reproducible.
101
+ # Pass an empty string to skip modifying the output.
102
+ #
103
+ # Templates: allowed.
104
+ mod_timestamp : " {{ .CommitTimestamp }}"
105
+
99
106
# GOOS list to build for.
100
107
# For more info refer to: https://go.dev/doc/install/source#environment
101
108
#
@@ -110,7 +117,6 @@ builds:
110
117
#
111
118
# Default: [ '386', 'amd64', 'arm64' ].
112
119
goarch :
113
- - ' 386'
114
120
- ' amd64'
115
121
- ' arm64'
116
122
@@ -124,13 +130,24 @@ builds:
124
130
goamd64 :
125
131
- ' v1'
126
132
133
+ # GOARM to specify which 32-bit arm version to use if there are multiple
134
+ # versions from the build section. Brew formulas support only one 32-bit
135
+ # version.
136
+ #
137
+ # Default: 6.
138
+ goarm :
139
+ - ' 7'
140
+
127
141
# Set a specific go binary to use when building.
128
142
# It is safe to ignore this option in most cases.
129
143
#
130
144
# Default: "go".
131
145
# Templates: allowed.
132
146
# gobinary: "go1.23.3"
133
147
148
+ flags :
149
+ - -trimpath
150
+
134
151
# Ref: https://goreleaser.com/customization/archive/
135
152
archives :
136
153
- id : tar
@@ -233,19 +250,18 @@ brews:
233
250
# version.
234
251
#
235
252
# Default: 6.
236
- goarm : " 7 "
253
+ goarm : ' 7 '
237
254
238
- # GOAMD64 to specify which amd64 version to use if there are multiple
239
- # versions from the build section.
240
- #
241
- # Default: v1.
242
- # goamd64: v1
255
+ # IDs of the archives to use.
256
+ # Empty means all IDs.
257
+ ids :
258
+ - tar
243
259
244
260
# Templates: allowed.
245
261
commit_msg_template : " Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
246
262
247
263
# URL which is determined by the given Token (github, gitlab or gitea).
248
- url_template : " https://github.com/sixafter/nanoid-cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
264
+ # url_template: "https://github.com/sixafter/nanoid-cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
249
265
250
266
# Directory inside the repository to put the formula.
251
267
directory : Formula
@@ -258,6 +274,7 @@ brews:
258
274
259
275
# Template: allowed
260
276
test : |
277
+ system "#{bin}/nanoid version"
261
278
assert_match "version", shell_output("#{bin}/nanoid --version")
262
279
263
280
# Repository to push the generated files to.
@@ -302,13 +319,3 @@ brews:
302
319
owner : sixafter
303
320
name : homebrew-tap
304
321
branch : main
305
-
306
- upx :
307
- - # Whether to enable it or not.
308
- #
309
- # Templates: allowed.
310
- enabled : false
311
-
312
- # Compress argument.
313
- # Valid options are from '1' (faster) to '9' (better), and 'best'.
314
- compress : best
0 commit comments