chore(deps): update tools to latest versions (#2102)

* chore(deps): update tools to latest versions

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
Co-authored-by: westonsteimel <1593939+westonsteimel@users.noreply.github.com>
Co-authored-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
This commit is contained in:
anchore-actions-token-generator[bot] 2024-09-13 16:05:44 +00:00 committed by GitHub
parent 09a34d2ae8
commit e0b2c9c6af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 6 deletions

View file

@ -26,7 +26,7 @@ tools:
# used for linting
- name: golangci-lint
version:
want: v1.60.3
want: v1.61.0
method: github-release
with:
repo: golangci/golangci-lint
@ -58,7 +58,7 @@ tools:
# used to release all artifacts
- name: goreleaser
version:
want: v2.2.0
want: v2.3.0
method: github-release
with:
repo: goreleaser/goreleaser
@ -90,7 +90,7 @@ tools:
# used for running all local and CI tasks
- name: task
version:
want: v3.38.0
want: v3.39.0
method: github-release
with:
repo: go-task/task
@ -98,7 +98,7 @@ tools:
# used for triggering a release
- name: gh
version:
want: v2.55.0
want: v2.56.0
method: github-release
with:
repo: cli/cli

View file

@ -15,7 +15,7 @@ linters:
- dogsled
- dupl
- errcheck
- exportloopref
- copyloopvar
- funlen
- gocognit
- goconst

View file

@ -27,7 +27,10 @@ func (s dbDownloadProgressStager) Stage() string {
return "validating"
}
// show intermediate progress of the download
return fmt.Sprintf("%s / %s", humanize.Bytes(uint64(s.prog.Current())), humanize.Bytes(uint64(s.prog.Size())))
return fmt.Sprintf("%s / %s",
humanize.Bytes(safeConvertInt64ToUint64(s.prog.Current())),
humanize.Bytes(safeConvertInt64ToUint64(s.prog.Size())),
)
}
return stage
}
@ -51,3 +54,10 @@ func (m *Handler) handleUpdateVulnerabilityDatabase(e partybus.Event) ([]tea.Mod
return []tea.Model{tsk}, nil
}
func safeConvertInt64ToUint64(i int64) uint64 {
if i < 0 {
return 0
}
return uint64(i)
}