From a12e347d9beabd6e57a928a24252853415686ae7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 07:25:06 +0000 Subject: [PATCH] chore(deps): bump github.com/crazy-max/gohealthchecks Bumps [github.com/crazy-max/gohealthchecks](https://github.com/crazy-max/gohealthchecks) from 0.4.1 to 0.5.0. - [Release notes](https://github.com/crazy-max/gohealthchecks/releases) - [Commits](https://github.com/crazy-max/gohealthchecks/compare/v0.4.1...v0.5.0) --- updated-dependencies: - dependency-name: github.com/crazy-max/gohealthchecks dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 +- .../crazy-max/gohealthchecks/.dockerignore | 1 + .../crazy-max/gohealthchecks/.gitignore | 2 +- .../crazy-max/gohealthchecks/.golangci.yml | 82 +++++++++++++++++++ .../crazy-max/gohealthchecks/CHANGELOG.md | 26 ------ .../crazy-max/gohealthchecks/Dockerfile | 31 +++++++ .../crazy-max/gohealthchecks/LICENSE | 2 +- .../crazy-max/gohealthchecks/codecov.yml | 8 ++ .../crazy-max/gohealthchecks/doc.go | 51 ++++++------ .../crazy-max/gohealthchecks/docker-bake.hcl | 24 ++++++ .../crazy-max/gohealthchecks/healthchecks.go | 9 +- vendor/modules.txt | 2 +- 13 files changed, 182 insertions(+), 62 deletions(-) create mode 100644 vendor/github.com/crazy-max/gohealthchecks/.dockerignore create mode 100644 vendor/github.com/crazy-max/gohealthchecks/.golangci.yml delete mode 100644 vendor/github.com/crazy-max/gohealthchecks/CHANGELOG.md create mode 100644 vendor/github.com/crazy-max/gohealthchecks/Dockerfile create mode 100644 vendor/github.com/crazy-max/gohealthchecks/codecov.yml create mode 100644 vendor/github.com/crazy-max/gohealthchecks/docker-bake.hcl diff --git a/go.mod b/go.mod index 0513f8c7..273092c1 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/containerd/platforms v0.2.1 github.com/containers/image/v5 v5.33.0 github.com/crazy-max/cron/v3 v3.1.1 - github.com/crazy-max/gohealthchecks v0.4.1 + github.com/crazy-max/gohealthchecks v0.5.0 github.com/crazy-max/gonfig v0.7.1 github.com/distribution/reference v0.6.0 github.com/docker/docker v27.3.1+incompatible diff --git a/go.sum b/go.sum index 1bd6f886..2061ee03 100644 --- a/go.sum +++ b/go.sum @@ -64,8 +64,8 @@ github.com/containers/storage v1.56.0/go.mod h1:c6WKowcAlED/DkWGNuL9bvGYqIWCVy7i github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/crazy-max/cron/v3 v3.1.1 h1:8tsAXjV522daYSaN6/Mb/Nh8X/Ez+nedU0KuPV98rNU= github.com/crazy-max/cron/v3 v3.1.1/go.mod h1:yexi3kKoh3GcnmRCppyJKsvYIBWzDVaym0dwNWo+zdg= -github.com/crazy-max/gohealthchecks v0.4.1 h1:gbjZzF/GxwDyP78u37B2/c2iQfq8BEjAHS3eBLM6FcQ= -github.com/crazy-max/gohealthchecks v0.4.1/go.mod h1:gkT8QSdEXZJahyswdTGDbd+q20fWm0DmWW7TWBNtgJg= +github.com/crazy-max/gohealthchecks v0.5.0 h1:wfkN1QIKTEUkEyqksam5Rbowh/ZwCR/knsgnanJiqg0= +github.com/crazy-max/gohealthchecks v0.5.0/go.mod h1:gkT8QSdEXZJahyswdTGDbd+q20fWm0DmWW7TWBNtgJg= github.com/crazy-max/gonfig v0.7.1 h1:cT+Wj7syVnsxmjl+u+Fs/cwZEcorHdGdHgcp3UZNWDE= github.com/crazy-max/gonfig v0.7.1/go.mod h1:csPFrGh/m0nIamCJbah1ZN2/+5s510nQQ7szHsk8HZ0= github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI= diff --git a/vendor/github.com/crazy-max/gohealthchecks/.dockerignore b/vendor/github.com/crazy-max/gohealthchecks/.dockerignore new file mode 100644 index 00000000..5e56e040 --- /dev/null +++ b/vendor/github.com/crazy-max/gohealthchecks/.dockerignore @@ -0,0 +1 @@ +/bin diff --git a/vendor/github.com/crazy-max/gohealthchecks/.gitignore b/vendor/github.com/crazy-max/gohealthchecks/.gitignore index 3f2bc474..5e56e040 100644 --- a/vendor/github.com/crazy-max/gohealthchecks/.gitignore +++ b/vendor/github.com/crazy-max/gohealthchecks/.gitignore @@ -1 +1 @@ -/coverage.txt +/bin diff --git a/vendor/github.com/crazy-max/gohealthchecks/.golangci.yml b/vendor/github.com/crazy-max/gohealthchecks/.golangci.yml new file mode 100644 index 00000000..1b1ca612 --- /dev/null +++ b/vendor/github.com/crazy-max/gohealthchecks/.golangci.yml @@ -0,0 +1,82 @@ +run: + timeout: 10m + # default uses Go version from the go.mod file, fallback on the env var + # `GOVERSION`, fallback on 1.17: https://golangci-lint.run/usage/configuration/#run-configuration + go: "1.23" + +linters: + enable: + - bodyclose + - depguard + - forbidigo + - gocritic + - gofmt + - goimports + - gosec + - gosimple + - govet + - ineffassign + - makezero + - misspell + - noctx + - nolintlint + - revive + - staticcheck + - testifylint + - typecheck + - unused + - whitespace + disable-all: true + +linters-settings: + gocritic: + disabled-checks: + - "ifElseChain" + - "assignOp" + - "appendAssign" + - "singleCaseSwitch" + govet: + enable: + - nilness + - unusedwrite + depguard: + rules: + main: + deny: + - pkg: "io/ioutil" + desc: The io/ioutil package has been deprecated. + gosec: + config: + G306: "0644" + testifylint: + disable: + # disable rules that reduce the test condition + - "empty" + - "bool-compare" + - "len" + - "negative-positive" + +issues: + exclude-rules: + - linters: + - revive + text: "stutters" + - linters: + - revive + text: "empty-block" + - linters: + - revive + text: "superfluous-else" + - linters: + - revive + text: "unused-parameter" + - linters: + - revive + text: "redefines-builtin-id" + - linters: + - revive + text: "if-return" + + # show all + max-issues-per-linter: 0 + max-same-issues: 0 diff --git a/vendor/github.com/crazy-max/gohealthchecks/CHANGELOG.md b/vendor/github.com/crazy-max/gohealthchecks/CHANGELOG.md deleted file mode 100644 index 79516348..00000000 --- a/vendor/github.com/crazy-max/gohealthchecks/CHANGELOG.md +++ /dev/null @@ -1,26 +0,0 @@ -# Changelog - -## 0.4.1 (2023/05/05) - -* Missing version bump - -## 0.4.0 (2023/05/05) - -* Go 1.20 support (#7 #15 #19) -* Use `POST` method (#18) - -## 0.3.0 (2021/03/08) - -* Go 1.16 support - -## 0.2.0 (2020/10/13) - -* Allow logs for start event - -## 0.1.1 (2020/10/13) - -* Fix requests path - -## 0.1.0 (2020/10/12) - -* Initial version diff --git a/vendor/github.com/crazy-max/gohealthchecks/Dockerfile b/vendor/github.com/crazy-max/gohealthchecks/Dockerfile new file mode 100644 index 00000000..de2926f7 --- /dev/null +++ b/vendor/github.com/crazy-max/gohealthchecks/Dockerfile @@ -0,0 +1,31 @@ +# syntax=docker/dockerfile:1 + +ARG GO_VERSION="1.23" +ARG GOLANGCI_LINT_VERSION="v1.62" + +FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint + +FROM golang:${GO_VERSION}-alpine AS base +ENV GOFLAGS="-buildvcs=false" +RUN apk add --no-cache gcc linux-headers musl-dev +WORKDIR /src + +FROM base AS test +ARG GO_VERSION +ENV CGO_ENABLED=1 +RUN --mount=type=bind,target=. \ + --mount=type=cache,target=/go/pkg/mod \ + --mount=type=cache,target=/root/.cache/go-build <