File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ TB_SEMVER ?= $(TB_LOCALBIN)/semver
20
20
# renovate: packageName=k8s.io/code-generator/cmd/deepcopy-gen
21
21
TB_DEEPCOPY_GEN_VERSION ?= v0.32.3
22
22
# renovate: packageName=github.com/golangci/golangci-lint/v2/cmd/golangci-lint
23
- TB_GOLANGCI_LINT_VERSION ?= v2.0.2
23
+ TB_GOLANGCI_LINT_VERSION ?= v2.1.1
24
24
# renovate: packageName=github.com/goreleaser/goreleaser/v2
25
25
TB_GORELEASER_VERSION ?= v2.8.2
26
26
# renovate: packageName=github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen
Original file line number Diff line number Diff line change @@ -370,23 +370,23 @@ func hasForbiddenSuffix(tb *types.Toolbox, a types.Asset) bool {
370
370
return false
371
371
}
372
372
373
- func parseTemplate (templ , version string ) string {
373
+ func parseTemplate (templ , v string ) string {
374
374
ut , err := template .New ("url" ).Parse (templ )
375
375
if err != nil {
376
376
panic (err )
377
377
}
378
378
379
379
var b bytes.Buffer
380
- if err := ut .Execute (& b , templateData (version )); err != nil {
380
+ if err := ut .Execute (& b , templateData (v )); err != nil {
381
381
panic (err )
382
382
}
383
383
return b .String ()
384
384
}
385
385
386
- func templateData (version string ) map [string ]string {
386
+ func templateData (v string ) map [string ]string {
387
387
return map [string ]string {
388
- "Version" : version ,
389
- "VersionNum" : strings .TrimPrefix (version , "v" ),
388
+ "Version" : v ,
389
+ "VersionNum" : strings .TrimPrefix (v , "v" ),
390
390
"OS" : runtime .GOOS ,
391
391
"Arch" : runtime .GOARCH ,
392
392
"ArchBIT" : strconv .Itoa (strconv .IntSize ),
@@ -665,7 +665,7 @@ func downloadFile(path, url string) (err error) {
665
665
666
666
resp := client .Do (req )
667
667
if resp .Err () != nil {
668
- return http .CheckError (err )
668
+ return http .CheckError (resp . Err () )
669
669
}
670
670
671
671
log .Printf ("Download saved to %s" , resp .Filename )
You can’t perform that action at this time.
0 commit comments