mirror of
https://github.com/anchore/grype
synced 2024-11-12 23:37:06 +00:00
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:
parent
09a34d2ae8
commit
e0b2c9c6af
3 changed files with 16 additions and 6 deletions
|
@ -26,7 +26,7 @@ tools:
|
||||||
# used for linting
|
# used for linting
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
version:
|
version:
|
||||||
want: v1.60.3
|
want: v1.61.0
|
||||||
method: github-release
|
method: github-release
|
||||||
with:
|
with:
|
||||||
repo: golangci/golangci-lint
|
repo: golangci/golangci-lint
|
||||||
|
@ -58,7 +58,7 @@ tools:
|
||||||
# used to release all artifacts
|
# used to release all artifacts
|
||||||
- name: goreleaser
|
- name: goreleaser
|
||||||
version:
|
version:
|
||||||
want: v2.2.0
|
want: v2.3.0
|
||||||
method: github-release
|
method: github-release
|
||||||
with:
|
with:
|
||||||
repo: goreleaser/goreleaser
|
repo: goreleaser/goreleaser
|
||||||
|
@ -90,7 +90,7 @@ tools:
|
||||||
# used for running all local and CI tasks
|
# used for running all local and CI tasks
|
||||||
- name: task
|
- name: task
|
||||||
version:
|
version:
|
||||||
want: v3.38.0
|
want: v3.39.0
|
||||||
method: github-release
|
method: github-release
|
||||||
with:
|
with:
|
||||||
repo: go-task/task
|
repo: go-task/task
|
||||||
|
@ -98,7 +98,7 @@ tools:
|
||||||
# used for triggering a release
|
# used for triggering a release
|
||||||
- name: gh
|
- name: gh
|
||||||
version:
|
version:
|
||||||
want: v2.55.0
|
want: v2.56.0
|
||||||
method: github-release
|
method: github-release
|
||||||
with:
|
with:
|
||||||
repo: cli/cli
|
repo: cli/cli
|
||||||
|
|
|
@ -15,7 +15,7 @@ linters:
|
||||||
- dogsled
|
- dogsled
|
||||||
- dupl
|
- dupl
|
||||||
- errcheck
|
- errcheck
|
||||||
- exportloopref
|
- copyloopvar
|
||||||
- funlen
|
- funlen
|
||||||
- gocognit
|
- gocognit
|
||||||
- goconst
|
- goconst
|
||||||
|
|
|
@ -27,7 +27,10 @@ func (s dbDownloadProgressStager) Stage() string {
|
||||||
return "validating"
|
return "validating"
|
||||||
}
|
}
|
||||||
// show intermediate progress of the download
|
// 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
|
return stage
|
||||||
}
|
}
|
||||||
|
@ -51,3 +54,10 @@ func (m *Handler) handleUpdateVulnerabilityDatabase(e partybus.Event) ([]tea.Mod
|
||||||
|
|
||||||
return []tea.Model{tsk}, nil
|
return []tea.Model{tsk}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func safeConvertInt64ToUint64(i int64) uint64 {
|
||||||
|
if i < 0 {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
return uint64(i)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue