From ad0932f4aafacc4f6b6fcb80bda580ee5f1c84d5 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Wed, 1 Jan 2025 12:25:14 +0100 Subject: [PATCH 01/16] docs: log level (#23) Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/23 Co-authored-by: Timo Behrendt Co-committed-by: Timo Behrendt --- README.md | 1 + config.example.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 1d0dd04..d6c8b72 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ domains: - www check_interval: 0 0 0/6 * * * * mode: Scheduled +log_level: info ``` The config file is expected to be in the same directory as the binary and called `config.yaml`. For the OCR image, the root directory is `/app`. diff --git a/config.example.yaml b/config.example.yaml index b8fa980..71ce76e 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -21,3 +21,4 @@ domains: - www check_interval: 0 0 0/6 * * * * mode: Scheduled +log_level: info From e53827adf0b54a8b074d094d06119eacab6e9aa2 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Tue, 7 Jan 2025 19:08:58 +0100 Subject: [PATCH 02/16] ci: refactor multi arch build (#27) Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/27 Co-authored-by: Timo Behrendt Co-committed-by: Timo Behrendt --- .gitea/workflows/cd.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 3129b36..703803a 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -44,16 +44,18 @@ jobs: build_and_push: name: Build and push + strategy: + matrix: + arch: [amd64, arm64] needs: - test - runs-on: ubuntu-latest + runs-on: + - ubuntu-latest + - linux_${{ matrix.arch }} steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -75,9 +77,6 @@ jobs: with: context: . file: ./Dockerfile - platforms: | - linux/amd64 - linux/arm64 push: true tags: | ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} From ccf4f5dbbbdf6118eb633811cec03b603e1d2b7f Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Sat, 18 Jan 2025 22:28:30 +0100 Subject: [PATCH 03/16] ci: refactor CD to only publish a single OCI manifest for all arches (#28) Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/28 Co-authored-by: Timo Behrendt Co-committed-by: Timo Behrendt --- .gitea/workflows/cd.yaml | 55 ++++++++++++++++++++++++++++++---------- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 703803a..6e8635b 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -55,9 +55,44 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + - name: Login to Registry + uses: docker/login-action@v2 + with: + registry: ${{ env.DOCKER_REGISTRY }} + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASSWORD }} + - name: Get Metadata + id: meta + run: | + echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT + echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + file: ./Dockerfile + platforms: linux/${{ matrix.arch }} + push: true + provenance: false + tags: | + ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}-${{ matrix.arch }} + + create_manifest: + name: Create manifest + needs: + - build_and_push + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Get Metadata + id: meta + run: | + echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT + echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT - name: Login to Registry uses: docker/login-action@v2 @@ -66,18 +101,10 @@ jobs: username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_PASSWORD }} - - name: Get Metadata - id: meta + - name: Create manifest run: | - echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT - echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT + docker manifest create ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:latest \ + ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}-amd64 \ + ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}-arm64 - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - file: ./Dockerfile - push: true - tags: | - ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} - ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:latest + docker manifest push ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:latest From ad20ad46b08e6aa1b87311d6d40354bf70641baf Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Sun, 16 Feb 2025 20:27:29 +0100 Subject: [PATCH 04/16] chore: slimmer docker base image & binary (#29) Reduction of 352 MiB -> 8.22 MiB Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/29 Co-authored-by: Timo Behrendt Co-committed-by: Timo Behrendt --- .gitea/workflows/cd.yaml | 1 + Dockerfile | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 6e8635b..084b1b7 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -76,6 +76,7 @@ jobs: platforms: linux/${{ matrix.arch }} push: true provenance: false + build-args: GOARCH=${{ matrix.arch }} tags: | ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}-${{ matrix.arch }} diff --git a/Dockerfile b/Dockerfile index 9ca09e2..079eb99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,14 @@ -FROM golang:1.23-alpine +FROM golang:1.23-alpine as build + +ARG GOARCH=amd64 WORKDIR /app - COPY go.mod go.sum ./ - RUN go mod download - COPY . . +RUN CGO_ENABLED=0 GOOS=linux GOARCH=${GOARCH} \ + go build -trimpath -ldflags="-s -w" -o main . -RUN go build -o main . - -CMD ["./main"] +FROM gcr.io/distroless/static-debian12 +COPY --from=build /app/main / +CMD ["/main"] From f1e863b098d4be57e1267c3b905cb9b25350af3d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 13 Apr 2025 18:38:14 +0200 Subject: [PATCH 05/16] chore: Configure Renovate (#30) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Welcome to [Renovate](https://github.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin. 🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged. --- ### Detected Package Files * `Dockerfile` (dockerfile) * `.gitea/workflows/cd.yaml` (github-actions) * `.gitea/workflows/ci.yaml` (github-actions) * `go.mod` (gomod) ### What to Expect With your current configuration, Renovate will create 5 Pull Requests:
chore(deps): update golang docker tag to v1.24 - Schedule: ["at any time"] - Branch name: `renovate/golang-1.x` - Merge into: `main` - Upgrade golang to `1.24-alpine`
chore(deps): update docker/build-push-action action to v6 - Schedule: ["at any time"] - Branch name: `renovate/docker-build-push-action-6.x` - Merge into: `main` - Upgrade [docker/build-push-action](https://github.com/docker/build-push-action) to `v6`
chore(deps): update docker/login-action action to v3 - Schedule: ["at any time"] - Branch name: `renovate/docker-login-action-3.x` - Merge into: `main` - Upgrade [docker/login-action](https://github.com/docker/login-action) to `v3`
chore(deps): update docker/setup-buildx-action action to v3 - Schedule: ["at any time"] - Branch name: `renovate/docker-setup-buildx-action-3.x` - Merge into: `main` - Upgrade [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) to `v3`
chore(deps): update module github.com/go-co-op/gocron to v2 - Schedule: ["at any time"] - Branch name: `renovate/github.com-go-co-op-gocron-2.x` - Merge into: `main` - Upgrade [github.com/go-co-op/gocron](https://github.com/go-co-op/gocron) to `v2.16.1`
--- ❓ Got questions? Check out Renovate's [Docs](https://docs.renovatebot.com/), particularly the Getting Started section. If you need any further assistance then you can also [request help here](https://github.com/renovatebot/renovate/discussions). --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Co-authored-by: Timo Behrendt Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/30 Co-authored-by: Renovate Bot Co-committed-by: Renovate Bot --- .gitea/workflows/cd.yaml | 23 +++++++++++++++++++++++ renovate.json | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 renovate.json diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 084b1b7..166d564 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -9,6 +9,27 @@ env: DOCKER_REGISTRY: gitea.t000-n.de jobs: + check-changes: + name: Check changes + runs-on: ubuntu-latest + outputs: + changes: ${{ steps.filter.outputs.code }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Get changes + id: filter + uses: dorny/paths-filter@v3 + with: + filters: | + code: + - 'go.mod' + - 'go.sum' + - '**/*.go' + - 'config.example.yaml' + - 'Dockerfile' + - 'Makefile' + test: name: test runs-on: ubuntu-latest @@ -49,6 +70,8 @@ jobs: arch: [amd64, arm64] needs: - test + - check-changes + if: ${{ needs.check-changes.outputs.code == 'true' }} runs-on: - ubuntu-latest - linux_${{ matrix.arch }} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..7190a60 --- /dev/null +++ b/renovate.json @@ -0,0 +1,3 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json" +} From ab150a88efa2099aab7fb2ac82287b76cb6674ff Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 13 Apr 2025 18:43:53 +0200 Subject: [PATCH 06/16] chore(deps): update docker/login-action action to v3 (#33) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [docker/login-action](https://github.com/docker/login-action) | action | major | `v2` -> `v3` | --- ### Release Notes
docker/login-action (docker/login-action) ### [`v3`](https://github.com/docker/login-action/compare/v2...v3) [Compare Source](https://github.com/docker/login-action/compare/v2...v3)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/33 Co-authored-by: Renovate Bot Co-committed-by: Renovate Bot --- .gitea/workflows/cd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 166d564..bfa1a8a 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -81,7 +81,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.DOCKER_REGISTRY }} username: ${{ secrets.REGISTRY_USER }} @@ -119,7 +119,7 @@ jobs: echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT - name: Login to Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.DOCKER_REGISTRY }} username: ${{ secrets.REGISTRY_USER }} From a34f1f0a9a70edb7ea0375aa81df6ed74a90fd89 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 13 Apr 2025 18:44:33 +0200 Subject: [PATCH 07/16] chore(deps): update docker/setup-buildx-action action to v3 (#34) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | action | major | `v2` -> `v3` | --- ### Release Notes
docker/setup-buildx-action (docker/setup-buildx-action) ### [`v3`](https://github.com/docker/setup-buildx-action/compare/v2...v3) [Compare Source](https://github.com/docker/setup-buildx-action/compare/v2...v3)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/34 Co-authored-by: Renovate Bot Co-committed-by: Renovate Bot --- .gitea/workflows/cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index bfa1a8a..cfec890 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -79,7 +79,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to Registry uses: docker/login-action@v3 with: From d4e48c2fbf609747d6a4dacd138c2e3e2d22e28f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 13 Apr 2025 18:46:07 +0200 Subject: [PATCH 08/16] chore(deps): update docker/build-push-action action to v6 (#32) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [docker/build-push-action](https://github.com/docker/build-push-action) | action | major | `v4` -> `v6` | --- ### Release Notes
docker/build-push-action (docker/build-push-action) ### [`v6`](https://github.com/docker/build-push-action/compare/v5...v6) [Compare Source](https://github.com/docker/build-push-action/compare/v5...v6) ### [`v5`](https://github.com/docker/build-push-action/compare/v4...v5) [Compare Source](https://github.com/docker/build-push-action/compare/v4...v5)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/32 Co-authored-by: Renovate Bot Co-committed-by: Renovate Bot --- .gitea/workflows/cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index cfec890..9a2316e 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -92,7 +92,7 @@ jobs: echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . file: ./Dockerfile From 89d965a4d23273b561882430b9936be49bb30113 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 13 Apr 2025 18:49:09 +0200 Subject: [PATCH 09/16] chore(deps): update module github.com/go-co-op/gocron to v2 (#35) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/go-co-op/gocron](https://github.com/go-co-op/gocron) | require | major | `v1.37.0` -> `v2.16.1` | --- ### Release Notes
go-co-op/gocron (github.com/go-co-op/gocron) ### [`v2.16.1`](https://github.com/go-co-op/gocron/releases/tag/v2.16.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.16.0...v2.16.1) #### What's Changed - Fix [#​835](https://github.com/go-co-op/gocron/issues/835) and [#​837](https://github.com/go-co-op/gocron/issues/837) by [@​apocelipes](https://github.com/apocelipes) in https://github.com/go-co-op/gocron/pull/836 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.16.0...v2.16.1 ### [`v2.16.0`](https://github.com/go-co-op/gocron/releases/tag/v2.16.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.15.0...v2.16.0) #### What's Changed - feat:custom-cron interface for own custom cron implimentation by [@​Dojeto](https://github.com/Dojeto) in https://github.com/go-co-op/gocron/pull/834 #### Bug fixes - fixes related to the bug where a job unexpectedly runs twice by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/810 - fix scheduler restart by [@​27149chen](https://github.com/27149chen) in https://github.com/go-co-op/gocron/pull/825 - removes nextRuns in the past when job skipped by locker [#​828](https://github.com/go-co-op/gocron/issues/828) by [@​manuelarte](https://github.com/manuelarte) in https://github.com/go-co-op/gocron/pull/829 #### Chores - go to 1.21, upgrade deps by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/822 - replace "golang.org/x/exp" with standard libraries by [@​apocelipes](https://github.com/apocelipes) in https://github.com/go-co-op/gocron/pull/823 - Bump golangci/golangci-lint-action from 6.2.0 to 6.3.2 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/827 - fix err assertion in TestScheduler_RemoveJob by [@​alexandear](https://github.com/alexandear) in https://github.com/go-co-op/gocron/pull/830 - Bump golangci/golangci-lint-action from 6.3.2 to 6.5.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/831 - re-enable goleak detection in ci by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/832 - chore: add go1.24 to ci by [@​apocelipes](https://github.com/apocelipes) in https://github.com/go-co-op/gocron/pull/833 #### New Contributors - [@​alexandear](https://github.com/alexandear) made their first contribution in https://github.com/go-co-op/gocron/pull/830 - [@​Dojeto](https://github.com/Dojeto) made their first contribution in https://github.com/go-co-op/gocron/pull/834 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.15.0...v2.16.0 ### [`v2.15.0`](https://github.com/go-co-op/gocron/releases/tag/v2.15.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.14.2...v2.15.0) #### What's New - New method WithContext supports providing a parent context by [@​27149chen](https://github.com/27149chen) in https://github.com/go-co-op/gocron/pull/819 & [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/820 ```go // WithContext sets the parent context for the job. // If you set the first argument of your Task func to be a context.Context, // gocron will pass in the provided context to the job and will cancel the // context on shutdown. If you cancel the context the job will no longer be // scheduled as well. This allows you to both control the job via a context // and listen for and handle cancellation within your job. ``` - Job task function now supports passing a ctx if the first argument in your function is a `context.Context` by [@​27149chen](https://github.com/27149chen) in https://github.com/go-co-op/gocron/pull/819 & [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/820 ```go // NewTask provides the job's task function and parameters. // If you set the first argument of your Task func to be a context.Context, // gocron will pass in a context (either the default Job context, or one // provided via WithContext) to the job and will cancel the context on shutdown. // This allows you to listen for and handle cancellation within your job. ``` #### Chores - Bump golangci/golangci-lint-action from 6.1.1 to 6.2.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/817 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.14.2...v2.15.0 ### [`v2.14.2`](https://github.com/go-co-op/gocron/releases/tag/v2.14.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.14.1...v2.14.2) #### What's Changed - feat: allow disabling global distributed locker per job by [@​seinshah](https://github.com/seinshah) in https://github.com/go-co-op/gocron/pull/811 - feat(event listener): introduce BeforeJobRunsSkipIfBeforeFuncErrors as a new Eventlistener by [@​FalcoSuessgott](https://github.com/FalcoSuessgott) in https://github.com/go-co-op/gocron/pull/813 #### New Contributors - [@​seinshah](https://github.com/seinshah) made their first contribution in https://github.com/go-co-op/gocron/pull/811 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.14.1...v2.14.2 ### [`v2.14.1`](https://github.com/go-co-op/gocron/releases/tag/v2.14.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.14.0...v2.14.1) #### What's Changed - BUG FIX: creating a new slice in several job options because appending modifies original by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/809 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.14.0...v2.14.1 ### [`v2.14.0`](https://github.com/go-co-op/gocron/releases/tag/v2.14.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.13.0...v2.14.0) #### What's Changed - parse time.Time from AtTime by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/806 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.13.0...v2.14.0 ### [`v2.13.0`](https://github.com/go-co-op/gocron/releases/tag/v2.13.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.12.4...v2.13.0) #### What's Changed - Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/801 - stop timeout timers when no longer needed by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/803 - feat(monitor): introduce MonitorStatus by [@​FalcoSuessgott](https://github.com/FalcoSuessgott) in https://github.com/go-co-op/gocron/pull/780 #### New Contributors - [@​FalcoSuessgott](https://github.com/FalcoSuessgott) made their first contribution in https://github.com/go-co-op/gocron/pull/780 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.12.4...v2.13.0 ### [`v2.12.4`](https://github.com/go-co-op/gocron/releases/tag/v2.12.4) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.12.3...v2.12.4) #### What's Changed - Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/781 - fix overly greedy panic handler by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/800 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.12.3...v2.12.4 ### [`v2.12.3`](https://github.com/go-co-op/gocron/releases/tag/v2.12.3) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.12.2...v2.12.3) #### What's Changed - update mocks with latest job/scheduler changes by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/794 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.12.2...v2.12.3 ### [`v2.12.2`](https://github.com/go-co-op/gocron/releases/tag/v2.12.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.12.1...v2.12.2) #### What's Changed - dailyjob should not allow interval zero by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/791 - weekly and monthly jobs should not allow zero interval by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/792 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.12.1...v2.12.2 ### [`v2.12.1`](https://github.com/go-co-op/gocron/releases/tag/v2.12.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.12.0...v2.12.1) #### What's Changed - Fix CPU spike / max-out in One-time job when 2 or more equal times are provided by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/779 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.12.0...v2.12.1 ### [`v2.12.0`](https://github.com/go-co-op/gocron/releases/tag/v2.12.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.11.0...v2.12.0) #### What's Changed - add Rescheduled metric for executor. by [@​Higan](https://github.com/Higan) in https://github.com/go-co-op/gocron/pull/763 - handle crontab and return error with invalid day in a month by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/766 - Bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/764 - fix: cleanup timers by [@​hayotbisonai](https://github.com/hayotbisonai) in https://github.com/go-co-op/gocron/pull/776 #### New Contributors - [@​hayotbisonai](https://github.com/hayotbisonai) made their first contribution in https://github.com/go-co-op/gocron/pull/776 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.11.0...v2.12.0 ### [`v2.11.0`](https://github.com/go-co-op/gocron/releases/tag/v2.11.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.10.1...v2.11.0) #### Features - `WithStopAt` added to `JobOption`'s to allow giving a time for jobs to stop running by [@​Higan](https://github.com/Higan) in https://github.com/go-co-op/gocron/pull/760 #### Fixes - Fix typo in security policy by [@​deining](https://github.com/deining) in https://github.com/go-co-op/gocron/pull/759 #### Internal - internal refactoring by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/761 #### New Contributors - [@​deining](https://github.com/deining) made their first contribution in https://github.com/go-co-op/gocron/pull/759 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.10.1...v2.11.0 ### [`v2.10.1`](https://github.com/go-co-op/gocron/releases/tag/v2.10.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.10.0...v2.10.1) #### What's Changed - fix validation of variadic parameters when the type is interfaceby [@​apocelipes](https://github.com/apocelipes) in https://github.com/go-co-op/gocron/pull/757 #### New Contributors - [@​apocelipes](https://github.com/apocelipes) made their first contribution in https://github.com/go-co-op/gocron/pull/757 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.10.0...v2.10.1 ### [`v2.10.0`](https://github.com/go-co-op/gocron/releases/tag/v2.10.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.9.0...v2.10.0) #### What's Changed - issue-677: support task creation with variadic args by [@​Higan](https://github.com/Higan) in https://github.com/go-co-op/gocron/pull/755 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.9.0...v2.10.0 ### [`v2.9.0`](https://github.com/go-co-op/gocron/releases/tag/v2.9.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.8.0...v2.9.0) #### What's Changed - issue-751: speed up rescheduling when time scheduling from is time.Zero by [@​samuelattwood](https://github.com/samuelattwood) in https://github.com/go-co-op/gocron/pull/752 - feat: add WithIdentifier() as new job option by [@​pcfreak30](https://github.com/pcfreak30) in https://github.com/go-co-op/gocron/pull/754 #### New Contributors - [@​samuelattwood](https://github.com/samuelattwood) made their first contribution in https://github.com/go-co-op/gocron/pull/752 - [@​pcfreak30](https://github.com/pcfreak30) made their first contribution in https://github.com/go-co-op/gocron/pull/754 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.8.0...v2.9.0 ### [`v2.8.0`](https://github.com/go-co-op/gocron/releases/tag/v2.8.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.7.1...v2.8.0) #### What's Changed - issue-747: Provide more details of ErrPanicRecovered by [@​Higan](https://github.com/Higan) in https://github.com/go-co-op/gocron/pull/749 #### New Contributors - [@​Higan](https://github.com/Higan) made their first contribution in https://github.com/go-co-op/gocron/pull/749 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.7.1...v2.8.0 ### [`v2.7.1`](https://github.com/go-co-op/gocron/releases/tag/v2.7.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.7.0...v2.7.1) #### What's Changed - issue-740: ascending time function by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/744 - fix jobs not starting on scheduler restart when using WithLimitConcurrentJobs by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/745 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.7.0...v2.7.1 ### [`v2.7.0`](https://github.com/go-co-op/gocron/releases/tag/v2.7.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.6.0...v2.7.0) #### Added - issue-740: expand oneTimeJob to support multiple times by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/741 - [go doc](https://pkg.go.dev/github.com/go-co-op/gocron/v2#OneTimeJobStartDateTimes) #### Fixed - issue-742: bug in `NextRun` by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/743 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.6.0...v2.7.0 ### [`v2.6.0`](https://github.com/go-co-op/gocron/releases/tag/v2.6.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.5.0...v2.6.0) #### Added - after lock error listener by [@​manuelarte](https://github.com/manuelarte) in https://github.com/go-co-op/gocron/pull/734 - [go doc](https://pkg.go.dev/github.com/go-co-op/gocron/v2#AfterLockError) - Add `AfterJobRunsWithPanic` by [@​trungdlp-wolffun](https://github.com/trungdlp-wolffun) in https://github.com/go-co-op/gocron/pull/733 - [go doc](https://pkg.go.dev/github.com/go-co-op/gocron/v2#AfterJobRunsWithPanic) #### Fixed - issue-738: make withSeconds optional in cron-expression by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/739 - issue-736: moving validation of one-time to by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/737 #### Misc - Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/730 - remove circleci config by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/735 #### New Contributors - [@​manuelarte](https://github.com/manuelarte) made their first contribution in https://github.com/go-co-op/gocron/pull/734 - [@​trungdlp-wolffun](https://github.com/trungdlp-wolffun) made their first contribution in https://github.com/go-co-op/gocron/pull/733 - [@​rbroggi](https://github.com/rbroggi) made their first contribution in https://github.com/go-co-op/gocron/pull/739 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.5.0...v2.6.0 ### [`v2.5.0`](https://github.com/go-co-op/gocron/releases/tag/v2.5.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.4.1...v2.5.0) #### What's Changed - adding Job.NextRuns to provide n next run times by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/729 - Bump golangci/golangci-lint-action from 4.0.0 to 5.3.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/728 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.4.1...v2.5.0 ### [`v2.4.1`](https://github.com/go-co-op/gocron/releases/tag/v2.4.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.4.0...v2.4.1) #### What's Changed - fix memory leak with singleton mode where job is sending duplicate reschedule requests by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/723 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.4.0...v2.4.1 ### [`v2.4.0`](https://github.com/go-co-op/gocron/releases/tag/v2.4.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.3.0...v2.4.0) #### What's Changed - Added JobsWaitingInQueue in Scheduler by [@​giri-vsr](https://github.com/giri-vsr) in https://github.com/go-co-op/gocron/pull/721 - don't trash the incoming slice, match what was done in NewAtTime by [@​cloudkucooland](https://github.com/cloudkucooland) in https://github.com/go-co-op/gocron/pull/724 #### New Contributors - [@​cloudkucooland](https://github.com/cloudkucooland) made their first contribution in https://github.com/go-co-op/gocron/pull/724 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.3.0...v2.4.0 ### [`v2.3.0`](https://github.com/go-co-op/gocron/releases/tag/v2.3.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.10...v2.3.0) #### What's Changed - Add Go 1.22 to test matrix by [@​evgenymarkov](https://github.com/evgenymarkov) in https://github.com/go-co-op/gocron/pull/714 - Monitor: IncrementJob in case of skipped job run by [@​giri-vsr](https://github.com/giri-vsr) in https://github.com/go-co-op/gocron/pull/715 - fix mocks import path by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/720 #### New Contributors - [@​evgenymarkov](https://github.com/evgenymarkov) made their first contribution in https://github.com/go-co-op/gocron/pull/714 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.10...v2.2.11 ### [`v2.2.10`](https://github.com/go-co-op/gocron/releases/tag/v2.2.10) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.9...v2.2.10) #### What's Changed - fix nextRun with singleton mode reporting incorrect time by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/705 - Added Distributed Locker to JobOptions by [@​giri-vsr](https://github.com/giri-vsr) in https://github.com/go-co-op/gocron/pull/711 #### New Contributors - [@​giri-vsr](https://github.com/giri-vsr) made their first contribution in https://github.com/go-co-op/gocron/pull/711 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.9...v2.2.10 ### [`v2.2.9`](https://github.com/go-co-op/gocron/releases/tag/v2.2.9) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.8...v2.2.9) #### What's Changed - fix case where OneTimeJob with concurrent limit and limited runs fails to run by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/703 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.8...v2.2.9 ### [`v2.2.8`](https://github.com/go-co-op/gocron/releases/tag/v2.2.8) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.7...v2.2.8) #### What's Changed - return an error if duration is zero by [@​moyu-x](https://github.com/moyu-x) in https://github.com/go-co-op/gocron/pull/701 - properly report lastRun for limit type jobs and RunNow by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/700 #### New Contributors - [@​moyu-x](https://github.com/moyu-x) made their first contribution in https://github.com/go-co-op/gocron/pull/701 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.7...v2.2.8 ### [`v2.2.7`](https://github.com/go-co-op/gocron/releases/tag/v2.2.7) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.6...v2.2.7) #### What's Changed - Allow more time for requestJobCtx by [@​drewgonzales360](https://github.com/drewgonzales360) in https://github.com/go-co-op/gocron/pull/699 - fix case where job removed causes panic when rescheduling by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/698 #### New Contributors - [@​drewgonzales360](https://github.com/drewgonzales360) made their first contribution in https://github.com/go-co-op/gocron/pull/699 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.6...v2.2.7 ### [`v2.2.6`](https://github.com/go-co-op/gocron/releases/tag/v2.2.6) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.5...v2.2.6) #### What's Changed - Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/684 - elector & locker were failing to send out when not leader by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/688 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.5...v2.2.6 ### [`v2.2.5`](https://github.com/go-co-op/gocron/releases/tag/v2.2.5) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.4...v2.2.5) #### What's Changed - remove codecov by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/672 - Bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/675 - fix cases where default on send out is resulting in job not going out by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/686 - This fixes two bugs related to limit mode and singleton mode having jobs stop running **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.4...v2.2.5 ### [`v2.2.4`](https://github.com/go-co-op/gocron/releases/tag/v2.2.4) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.3...v2.2.4) #### What's Changed - correct AfterJobRuns doc by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/670 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.3...v2.2.4 ### [`v2.2.3`](https://github.com/go-co-op/gocron/releases/tag/v2.2.3) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.2...v2.2.3) #### What's Changed - fix RunNow() when calling from a job returned by Jobs() by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/668 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.2...v2.2.3 ### [`v2.2.2`](https://github.com/go-co-op/gocron/releases/tag/v2.2.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.1...v2.2.2) #### What's Changed - Bump github.com/google/uuid from 1.5.0 to 1.6.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/664 - fix unsafe map usage in singletonMode by [@​JohnRoesler](https://github.com/JohnRoesler) & [@​a3sroot](https://github.com/a3sroot) in https://github.com/go-co-op/gocron/pull/665 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.1...v2.2.2 ### [`v2.2.1`](https://github.com/go-co-op/gocron/releases/tag/v2.2.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.0...v2.2.1) #### What's Changed - fix monthly jobs when counting days from the end by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/662 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.0...v2.2.1 ### [`v2.2.0`](https://github.com/go-co-op/gocron/releases/tag/v2.2.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.1.2...v2.2.0) #### What's Changed - wait for new job to be fully created before returning by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/658 - BETA FEATURE: Add job monitor interface to allow for collecting job metrics by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/659 - This is the first release of the monitor feature - it may be changed as initial implementations are created and feedback comes in **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.1.2...v2.2.0 ### [`v2.1.2`](https://github.com/go-co-op/gocron/releases/tag/v2.1.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.1.1...v2.1.2) #### Fixes - fix to handle when next ends up in the past by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/650 - make the order of the returned jobs slice deterministic by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/652 #### Documentation - refactor: fix indent by [@​leedrum](https://github.com/leedrum) in https://github.com/go-co-op/gocron/pull/649 #### New Contributors - [@​leedrum](https://github.com/leedrum) made their first contribution in https://github.com/go-co-op/gocron/pull/649 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.1.1...v2.1.2 ### [`v2.1.1`](https://github.com/go-co-op/gocron/releases/tag/v2.1.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.1.0...v2.1.1) #### What's Changed - [bump golang.org/x/exp](https://github.com/go-co-op/gocron/commit/7ee4c50f5785121eb4b5fb37ea79d13334c2143e) - [fixup Job and Scheduler interface docs](https://github.com/go-co-op/gocron/commit/a51820e30f6657d908f7051ceb92091c4abe6b8e) **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.1.0...v2.1.1 ### [`v2.1.0`](https://github.com/go-co-op/gocron/releases/tag/v2.1.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.0.3...v2.1.0) #### What's Changed - add new features, OneTimeJob and Job.RunNow() by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/646 #### Version bumps - Bump github/codeql-action from 2 to 3 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/644 - Bump github.com/google/uuid from 1.4.0 to 1.5.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/645 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.0.3...v2.1.0 ### [`v2.0.3`](https://github.com/go-co-op/gocron/releases/tag/v2.0.3) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.0.2...v2.0.3) #### Fixes - fix weekly and monthly to handle midnight by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/643 [#​642](https://github.com/go-co-op/gocron/issues/642) **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.0.2...v2.0.3 ### [`v2.0.2`](https://github.com/go-co-op/gocron/releases/tag/v2.0.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.0.1...v2.0.2) #### Fixes - fix: check function param length and type by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/638 raised in [#​637](https://github.com/go-co-op/gocron/issues/637) **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.0.1...v2.0.2 ### [`v2.0.1`](https://github.com/go-co-op/gocron/releases/tag/v2.0.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.0.0...v2.0.1) #### Fixes - daily job next logic failed to consider 1 midnight attime by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/635 #### Bumps - Bump actions/checkout from 3 to 4 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/631 - Bump actions/setup-go from 4 to 5 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/630 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.0.0...v2.0.1 ### [`v2.0.0`](https://github.com/go-co-op/gocron/releases/tag/v2.0.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v1.37.0...v2.0.0) #### v2.0.0 It's here! 🎉 Take a look at the readme and godoc to see how the new version works! Please give feedback! (Reach out on slack if you're interested in contributing so we can coordinate work 😄 ) And open issues if you find any bugs or have features you'd like to see supported! #### New Contributors - [@​AlphaNecron](https://github.com/AlphaNecron) made their first contribution in https://github.com/go-co-op/gocron/pull/613 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.0.0-alpha-1...v2.0.0
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Co-authored-by: t.behrendt Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/35 Co-authored-by: Renovate Bot Co-committed-by: Renovate Bot --- go.mod | 3 ++- go.sum | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 78299b3..89eaf0f 100644 --- a/go.mod +++ b/go.mod @@ -4,12 +4,13 @@ go 1.23 require ( github.com/go-co-op/gocron v1.37.0 + github.com/go-co-op/gocron/v2 v2.16.1 gopkg.in/yaml.v3 v3.0.1 ) require ( github.com/google/uuid v1.6.0 // indirect github.com/robfig/cron/v3 v3.0.1 // indirect - github.com/stretchr/testify v1.8.4 // indirect + github.com/stretchr/testify v1.10.0 // indirect go.uber.org/atomic v1.11.0 // indirect ) diff --git a/go.sum b/go.sum index 4d6bd32..234c7ac 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,7 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/go-co-op/gocron v1.37.0 h1:ZYDJGtQ4OMhTLKOKMIch+/CY70Brbb1dGdooLEhh7b0= github.com/go-co-op/gocron v1.37.0/go.mod h1:3L/n6BkO7ABj+TrfSVXLRzsP26zmikL4ISkLQ0O8iNY= +github.com/go-co-op/gocron/v2 v2.16.1/go.mod h1:opexeOFy5BplhsKdA7bzY9zeYih8I8/WNJ4arTIFPVc= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -32,6 +33,7 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= From 0fdd151e6dc5ebc8c1081dd596e208251254732c Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Sun, 13 Apr 2025 19:07:41 +0200 Subject: [PATCH 10/16] ci: fix conditional build condition (#37) Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/37 Co-authored-by: Timo Behrendt Co-committed-by: Timo Behrendt --- .gitea/workflows/cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 9a2316e..184ef69 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -13,7 +13,7 @@ jobs: name: Check changes runs-on: ubuntu-latest outputs: - changes: ${{ steps.filter.outputs.code }} + code: ${{ steps.filter.outputs.code }} steps: - name: Checkout uses: actions/checkout@v4 From 29c62a8b1ff0f8f1826d13447fa5a43d01ff99f5 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 29 Apr 2025 17:32:19 +0200 Subject: [PATCH 11/16] chore(deps): update golang docker tag to v1.24 (#31) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | golang | stage | minor | `1.23-alpine` -> `1.24-alpine` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/31 Reviewed-by: t.behrendt Co-authored-by: Renovate Bot Co-committed-by: Renovate Bot --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 079eb99..5a52906 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23-alpine as build +FROM golang:1.24-alpine as build ARG GOARCH=amd64 From 99e1214a839914aec23b77c95f42d813949e81c3 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 6 Jun 2025 11:53:22 +0200 Subject: [PATCH 12/16] chore(deps): update module github.com/go-co-op/gocron to v2 (#36) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/go-co-op/gocron](https://github.com/go-co-op/gocron) | require | major | `v1.37.0` -> `v2.16.2` | --- ### Release Notes
go-co-op/gocron (github.com/go-co-op/gocron) ### [`v2.16.2`](https://github.com/go-co-op/gocron/releases/tag/v2.16.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.16.1...v2.16.2) #### What's Changed - docs: adapt README to the dark theme by [@​alexandear](https://github.com/alexandear) in https://github.com/go-co-op/gocron/pull/844 - go 1.23 & golangci-lint v2 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/843 - [Go 1.22 and below are end of life](https://endoflife.date/go) - Bump golangci/golangci-lint-action from 7.0.0 to 8.0.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/847 - chore: document the limitations with the locker design by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/848 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.16.1...v2.16.2 ### [`v2.16.1`](https://github.com/go-co-op/gocron/releases/tag/v2.16.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.16.0...v2.16.1) #### What's Changed - Fix [#​835](https://github.com/go-co-op/gocron/issues/835) and [#​837](https://github.com/go-co-op/gocron/issues/837) by [@​apocelipes](https://github.com/apocelipes) in https://github.com/go-co-op/gocron/pull/836 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.16.0...v2.16.1 ### [`v2.16.0`](https://github.com/go-co-op/gocron/releases/tag/v2.16.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.15.0...v2.16.0) #### What's Changed - feat:custom-cron interface for own custom cron implimentation by [@​Dojeto](https://github.com/Dojeto) in https://github.com/go-co-op/gocron/pull/834 #### Bug fixes - fixes related to the bug where a job unexpectedly runs twice by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/810 - fix scheduler restart by [@​27149chen](https://github.com/27149chen) in https://github.com/go-co-op/gocron/pull/825 - removes nextRuns in the past when job skipped by locker [#​828](https://github.com/go-co-op/gocron/issues/828) by [@​manuelarte](https://github.com/manuelarte) in https://github.com/go-co-op/gocron/pull/829 #### Chores - go to 1.21, upgrade deps by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/822 - replace "golang.org/x/exp" with standard libraries by [@​apocelipes](https://github.com/apocelipes) in https://github.com/go-co-op/gocron/pull/823 - Bump golangci/golangci-lint-action from 6.2.0 to 6.3.2 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/827 - fix err assertion in TestScheduler_RemoveJob by [@​alexandear](https://github.com/alexandear) in https://github.com/go-co-op/gocron/pull/830 - Bump golangci/golangci-lint-action from 6.3.2 to 6.5.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/831 - re-enable goleak detection in ci by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/832 - chore: add go1.24 to ci by [@​apocelipes](https://github.com/apocelipes) in https://github.com/go-co-op/gocron/pull/833 #### New Contributors - [@​alexandear](https://github.com/alexandear) made their first contribution in https://github.com/go-co-op/gocron/pull/830 - [@​Dojeto](https://github.com/Dojeto) made their first contribution in https://github.com/go-co-op/gocron/pull/834 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.15.0...v2.16.0 ### [`v2.15.0`](https://github.com/go-co-op/gocron/releases/tag/v2.15.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.14.2...v2.15.0) #### What's New - New method WithContext supports providing a parent context by [@​27149chen](https://github.com/27149chen) in https://github.com/go-co-op/gocron/pull/819 & [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/820 ```go // WithContext sets the parent context for the job. // If you set the first argument of your Task func to be a context.Context, // gocron will pass in the provided context to the job and will cancel the // context on shutdown. If you cancel the context the job will no longer be // scheduled as well. This allows you to both control the job via a context // and listen for and handle cancellation within your job. ``` - Job task function now supports passing a ctx if the first argument in your function is a `context.Context` by [@​27149chen](https://github.com/27149chen) in https://github.com/go-co-op/gocron/pull/819 & [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/820 ```go // NewTask provides the job's task function and parameters. // If you set the first argument of your Task func to be a context.Context, // gocron will pass in a context (either the default Job context, or one // provided via WithContext) to the job and will cancel the context on shutdown. // This allows you to listen for and handle cancellation within your job. ``` #### Chores - Bump golangci/golangci-lint-action from 6.1.1 to 6.2.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/817 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.14.2...v2.15.0 ### [`v2.14.2`](https://github.com/go-co-op/gocron/releases/tag/v2.14.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.14.1...v2.14.2) #### What's Changed - feat: allow disabling global distributed locker per job by [@​seinshah](https://github.com/seinshah) in https://github.com/go-co-op/gocron/pull/811 - feat(event listener): introduce BeforeJobRunsSkipIfBeforeFuncErrors as a new Eventlistener by [@​FalcoSuessgott](https://github.com/FalcoSuessgott) in https://github.com/go-co-op/gocron/pull/813 #### New Contributors - [@​seinshah](https://github.com/seinshah) made their first contribution in https://github.com/go-co-op/gocron/pull/811 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.14.1...v2.14.2 ### [`v2.14.1`](https://github.com/go-co-op/gocron/releases/tag/v2.14.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.14.0...v2.14.1) #### What's Changed - BUG FIX: creating a new slice in several job options because appending modifies original by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/809 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.14.0...v2.14.1 ### [`v2.14.0`](https://github.com/go-co-op/gocron/releases/tag/v2.14.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.13.0...v2.14.0) #### What's Changed - parse time.Time from AtTime by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/806 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.13.0...v2.14.0 ### [`v2.13.0`](https://github.com/go-co-op/gocron/releases/tag/v2.13.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.12.4...v2.13.0) #### What's Changed - Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/801 - stop timeout timers when no longer needed by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/803 - feat(monitor): introduce MonitorStatus by [@​FalcoSuessgott](https://github.com/FalcoSuessgott) in https://github.com/go-co-op/gocron/pull/780 #### New Contributors - [@​FalcoSuessgott](https://github.com/FalcoSuessgott) made their first contribution in https://github.com/go-co-op/gocron/pull/780 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.12.4...v2.13.0 ### [`v2.12.4`](https://github.com/go-co-op/gocron/releases/tag/v2.12.4) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.12.3...v2.12.4) #### What's Changed - Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/781 - fix overly greedy panic handler by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/800 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.12.3...v2.12.4 ### [`v2.12.3`](https://github.com/go-co-op/gocron/releases/tag/v2.12.3) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.12.2...v2.12.3) #### What's Changed - update mocks with latest job/scheduler changes by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/794 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.12.2...v2.12.3 ### [`v2.12.2`](https://github.com/go-co-op/gocron/releases/tag/v2.12.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.12.1...v2.12.2) #### What's Changed - dailyjob should not allow interval zero by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/791 - weekly and monthly jobs should not allow zero interval by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/792 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.12.1...v2.12.2 ### [`v2.12.1`](https://github.com/go-co-op/gocron/releases/tag/v2.12.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.12.0...v2.12.1) #### What's Changed - Fix CPU spike / max-out in One-time job when 2 or more equal times are provided by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/779 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.12.0...v2.12.1 ### [`v2.12.0`](https://github.com/go-co-op/gocron/releases/tag/v2.12.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.11.0...v2.12.0) #### What's Changed - add Rescheduled metric for executor. by [@​Higan](https://github.com/Higan) in https://github.com/go-co-op/gocron/pull/763 - handle crontab and return error with invalid day in a month by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/766 - Bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/764 - fix: cleanup timers by [@​hayotbisonai](https://github.com/hayotbisonai) in https://github.com/go-co-op/gocron/pull/776 #### New Contributors - [@​hayotbisonai](https://github.com/hayotbisonai) made their first contribution in https://github.com/go-co-op/gocron/pull/776 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.11.0...v2.12.0 ### [`v2.11.0`](https://github.com/go-co-op/gocron/releases/tag/v2.11.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.10.1...v2.11.0) #### Features - `WithStopAt` added to `JobOption`'s to allow giving a time for jobs to stop running by [@​Higan](https://github.com/Higan) in https://github.com/go-co-op/gocron/pull/760 #### Fixes - Fix typo in security policy by [@​deining](https://github.com/deining) in https://github.com/go-co-op/gocron/pull/759 #### Internal - internal refactoring by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/761 #### New Contributors - [@​deining](https://github.com/deining) made their first contribution in https://github.com/go-co-op/gocron/pull/759 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.10.1...v2.11.0 ### [`v2.10.1`](https://github.com/go-co-op/gocron/releases/tag/v2.10.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.10.0...v2.10.1) #### What's Changed - fix validation of variadic parameters when the type is interfaceby [@​apocelipes](https://github.com/apocelipes) in https://github.com/go-co-op/gocron/pull/757 #### New Contributors - [@​apocelipes](https://github.com/apocelipes) made their first contribution in https://github.com/go-co-op/gocron/pull/757 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.10.0...v2.10.1 ### [`v2.10.0`](https://github.com/go-co-op/gocron/releases/tag/v2.10.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.9.0...v2.10.0) #### What's Changed - issue-677: support task creation with variadic args by [@​Higan](https://github.com/Higan) in https://github.com/go-co-op/gocron/pull/755 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.9.0...v2.10.0 ### [`v2.9.0`](https://github.com/go-co-op/gocron/releases/tag/v2.9.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.8.0...v2.9.0) #### What's Changed - issue-751: speed up rescheduling when time scheduling from is time.Zero by [@​samuelattwood](https://github.com/samuelattwood) in https://github.com/go-co-op/gocron/pull/752 - feat: add WithIdentifier() as new job option by [@​pcfreak30](https://github.com/pcfreak30) in https://github.com/go-co-op/gocron/pull/754 #### New Contributors - [@​samuelattwood](https://github.com/samuelattwood) made their first contribution in https://github.com/go-co-op/gocron/pull/752 - [@​pcfreak30](https://github.com/pcfreak30) made their first contribution in https://github.com/go-co-op/gocron/pull/754 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.8.0...v2.9.0 ### [`v2.8.0`](https://github.com/go-co-op/gocron/releases/tag/v2.8.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.7.1...v2.8.0) #### What's Changed - issue-747: Provide more details of ErrPanicRecovered by [@​Higan](https://github.com/Higan) in https://github.com/go-co-op/gocron/pull/749 #### New Contributors - [@​Higan](https://github.com/Higan) made their first contribution in https://github.com/go-co-op/gocron/pull/749 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.7.1...v2.8.0 ### [`v2.7.1`](https://github.com/go-co-op/gocron/releases/tag/v2.7.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.7.0...v2.7.1) #### What's Changed - issue-740: ascending time function by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/744 - fix jobs not starting on scheduler restart when using WithLimitConcurrentJobs by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/745 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.7.0...v2.7.1 ### [`v2.7.0`](https://github.com/go-co-op/gocron/releases/tag/v2.7.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.6.0...v2.7.0) #### Added - issue-740: expand oneTimeJob to support multiple times by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/741 - [go doc](https://pkg.go.dev/github.com/go-co-op/gocron/v2#OneTimeJobStartDateTimes) #### Fixed - issue-742: bug in `NextRun` by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/743 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.6.0...v2.7.0 ### [`v2.6.0`](https://github.com/go-co-op/gocron/releases/tag/v2.6.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.5.0...v2.6.0) #### Added - after lock error listener by [@​manuelarte](https://github.com/manuelarte) in https://github.com/go-co-op/gocron/pull/734 - [go doc](https://pkg.go.dev/github.com/go-co-op/gocron/v2#AfterLockError) - Add `AfterJobRunsWithPanic` by [@​trungdlp-wolffun](https://github.com/trungdlp-wolffun) in https://github.com/go-co-op/gocron/pull/733 - [go doc](https://pkg.go.dev/github.com/go-co-op/gocron/v2#AfterJobRunsWithPanic) #### Fixed - issue-738: make withSeconds optional in cron-expression by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/739 - issue-736: moving validation of one-time to by [@​rbroggi](https://github.com/rbroggi) in https://github.com/go-co-op/gocron/pull/737 #### Misc - Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/730 - remove circleci config by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/735 #### New Contributors - [@​manuelarte](https://github.com/manuelarte) made their first contribution in https://github.com/go-co-op/gocron/pull/734 - [@​trungdlp-wolffun](https://github.com/trungdlp-wolffun) made their first contribution in https://github.com/go-co-op/gocron/pull/733 - [@​rbroggi](https://github.com/rbroggi) made their first contribution in https://github.com/go-co-op/gocron/pull/739 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.5.0...v2.6.0 ### [`v2.5.0`](https://github.com/go-co-op/gocron/releases/tag/v2.5.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.4.1...v2.5.0) #### What's Changed - adding Job.NextRuns to provide n next run times by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/729 - Bump golangci/golangci-lint-action from 4.0.0 to 5.3.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/728 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.4.1...v2.5.0 ### [`v2.4.1`](https://github.com/go-co-op/gocron/releases/tag/v2.4.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.4.0...v2.4.1) #### What's Changed - fix memory leak with singleton mode where job is sending duplicate reschedule requests by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/723 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.4.0...v2.4.1 ### [`v2.4.0`](https://github.com/go-co-op/gocron/releases/tag/v2.4.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.3.0...v2.4.0) #### What's Changed - Added JobsWaitingInQueue in Scheduler by [@​giri-vsr](https://github.com/giri-vsr) in https://github.com/go-co-op/gocron/pull/721 - don't trash the incoming slice, match what was done in NewAtTime by [@​cloudkucooland](https://github.com/cloudkucooland) in https://github.com/go-co-op/gocron/pull/724 #### New Contributors - [@​cloudkucooland](https://github.com/cloudkucooland) made their first contribution in https://github.com/go-co-op/gocron/pull/724 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.3.0...v2.4.0 ### [`v2.3.0`](https://github.com/go-co-op/gocron/releases/tag/v2.3.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.10...v2.3.0) #### What's Changed - Add Go 1.22 to test matrix by [@​evgenymarkov](https://github.com/evgenymarkov) in https://github.com/go-co-op/gocron/pull/714 - Monitor: IncrementJob in case of skipped job run by [@​giri-vsr](https://github.com/giri-vsr) in https://github.com/go-co-op/gocron/pull/715 - fix mocks import path by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/720 #### New Contributors - [@​evgenymarkov](https://github.com/evgenymarkov) made their first contribution in https://github.com/go-co-op/gocron/pull/714 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.10...v2.2.11 ### [`v2.2.10`](https://github.com/go-co-op/gocron/releases/tag/v2.2.10) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.9...v2.2.10) #### What's Changed - fix nextRun with singleton mode reporting incorrect time by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/705 - Added Distributed Locker to JobOptions by [@​giri-vsr](https://github.com/giri-vsr) in https://github.com/go-co-op/gocron/pull/711 #### New Contributors - [@​giri-vsr](https://github.com/giri-vsr) made their first contribution in https://github.com/go-co-op/gocron/pull/711 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.9...v2.2.10 ### [`v2.2.9`](https://github.com/go-co-op/gocron/releases/tag/v2.2.9) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.8...v2.2.9) #### What's Changed - fix case where OneTimeJob with concurrent limit and limited runs fails to run by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/703 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.8...v2.2.9 ### [`v2.2.8`](https://github.com/go-co-op/gocron/releases/tag/v2.2.8) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.7...v2.2.8) #### What's Changed - return an error if duration is zero by [@​moyu-x](https://github.com/moyu-x) in https://github.com/go-co-op/gocron/pull/701 - properly report lastRun for limit type jobs and RunNow by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/700 #### New Contributors - [@​moyu-x](https://github.com/moyu-x) made their first contribution in https://github.com/go-co-op/gocron/pull/701 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.7...v2.2.8 ### [`v2.2.7`](https://github.com/go-co-op/gocron/releases/tag/v2.2.7) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.6...v2.2.7) #### What's Changed - Allow more time for requestJobCtx by [@​drewgonzales360](https://github.com/drewgonzales360) in https://github.com/go-co-op/gocron/pull/699 - fix case where job removed causes panic when rescheduling by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/698 #### New Contributors - [@​drewgonzales360](https://github.com/drewgonzales360) made their first contribution in https://github.com/go-co-op/gocron/pull/699 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.6...v2.2.7 ### [`v2.2.6`](https://github.com/go-co-op/gocron/releases/tag/v2.2.6) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.5...v2.2.6) #### What's Changed - Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/684 - elector & locker were failing to send out when not leader by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/688 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.5...v2.2.6 ### [`v2.2.5`](https://github.com/go-co-op/gocron/releases/tag/v2.2.5) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.4...v2.2.5) #### What's Changed - remove codecov by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/672 - Bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/675 - fix cases where default on send out is resulting in job not going out by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/686 - This fixes two bugs related to limit mode and singleton mode having jobs stop running **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.4...v2.2.5 ### [`v2.2.4`](https://github.com/go-co-op/gocron/releases/tag/v2.2.4) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.3...v2.2.4) #### What's Changed - correct AfterJobRuns doc by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/670 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.3...v2.2.4 ### [`v2.2.3`](https://github.com/go-co-op/gocron/releases/tag/v2.2.3) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.2...v2.2.3) #### What's Changed - fix RunNow() when calling from a job returned by Jobs() by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/668 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.2...v2.2.3 ### [`v2.2.2`](https://github.com/go-co-op/gocron/releases/tag/v2.2.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.1...v2.2.2) #### What's Changed - Bump github.com/google/uuid from 1.5.0 to 1.6.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/664 - fix unsafe map usage in singletonMode by [@​JohnRoesler](https://github.com/JohnRoesler) & [@​a3sroot](https://github.com/a3sroot) in https://github.com/go-co-op/gocron/pull/665 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.1...v2.2.2 ### [`v2.2.1`](https://github.com/go-co-op/gocron/releases/tag/v2.2.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.2.0...v2.2.1) #### What's Changed - fix monthly jobs when counting days from the end by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/662 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.2.0...v2.2.1 ### [`v2.2.0`](https://github.com/go-co-op/gocron/releases/tag/v2.2.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.1.2...v2.2.0) #### What's Changed - wait for new job to be fully created before returning by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/658 - BETA FEATURE: Add job monitor interface to allow for collecting job metrics by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/659 - This is the first release of the monitor feature - it may be changed as initial implementations are created and feedback comes in **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.1.2...v2.2.0 ### [`v2.1.2`](https://github.com/go-co-op/gocron/releases/tag/v2.1.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.1.1...v2.1.2) #### Fixes - fix to handle when next ends up in the past by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/650 - make the order of the returned jobs slice deterministic by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/652 #### Documentation - refactor: fix indent by [@​leedrum](https://github.com/leedrum) in https://github.com/go-co-op/gocron/pull/649 #### New Contributors - [@​leedrum](https://github.com/leedrum) made their first contribution in https://github.com/go-co-op/gocron/pull/649 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.1.1...v2.1.2 ### [`v2.1.1`](https://github.com/go-co-op/gocron/releases/tag/v2.1.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.1.0...v2.1.1) #### What's Changed - [bump golang.org/x/exp](https://github.com/go-co-op/gocron/commit/7ee4c50f5785121eb4b5fb37ea79d13334c2143e) - [fixup Job and Scheduler interface docs](https://github.com/go-co-op/gocron/commit/a51820e30f6657d908f7051ceb92091c4abe6b8e) **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.1.0...v2.1.1 ### [`v2.1.0`](https://github.com/go-co-op/gocron/releases/tag/v2.1.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.0.3...v2.1.0) #### What's Changed - add new features, OneTimeJob and Job.RunNow() by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/646 #### Version bumps - Bump github/codeql-action from 2 to 3 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/644 - Bump github.com/google/uuid from 1.4.0 to 1.5.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/645 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.0.3...v2.1.0 ### [`v2.0.3`](https://github.com/go-co-op/gocron/releases/tag/v2.0.3) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.0.2...v2.0.3) #### Fixes - fix weekly and monthly to handle midnight by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/643 [#​642](https://github.com/go-co-op/gocron/issues/642) **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.0.2...v2.0.3 ### [`v2.0.2`](https://github.com/go-co-op/gocron/releases/tag/v2.0.2) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.0.1...v2.0.2) #### Fixes - fix: check function param length and type by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/638 raised in [#​637](https://github.com/go-co-op/gocron/issues/637) **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.0.1...v2.0.2 ### [`v2.0.1`](https://github.com/go-co-op/gocron/releases/tag/v2.0.1) [Compare Source](https://github.com/go-co-op/gocron/compare/v2.0.0...v2.0.1) #### Fixes - daily job next logic failed to consider 1 midnight attime by [@​JohnRoesler](https://github.com/JohnRoesler) in https://github.com/go-co-op/gocron/pull/635 #### Bumps - Bump actions/checkout from 3 to 4 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/631 - Bump actions/setup-go from 4 to 5 by [@​dependabot](https://github.com/dependabot) in https://github.com/go-co-op/gocron/pull/630 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.0.0...v2.0.1 ### [`v2.0.0`](https://github.com/go-co-op/gocron/releases/tag/v2.0.0) [Compare Source](https://github.com/go-co-op/gocron/compare/v1.37.0...v2.0.0) #### v2.0.0 It's here! 🎉 Take a look at the readme and godoc to see how the new version works! Please give feedback! (Reach out on slack if you're interested in contributing so we can coordinate work 😄 ) And open issues if you find any bugs or have features you'd like to see supported! #### New Contributors - [@​AlphaNecron](https://github.com/AlphaNecron) made their first contribution in https://github.com/go-co-op/gocron/pull/613 **Full Changelog**: https://github.com/go-co-op/gocron/compare/v2.0.0-alpha-1...v2.0.0
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/36 Reviewed-by: t.behrendt Co-authored-by: Renovate Bot Co-committed-by: Renovate Bot --- go.mod | 6 ++++-- go.sum | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 89eaf0f..de034dd 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,12 @@ module realdnydns -go 1.23 +go 1.23.0 + +toolchain go1.24.4 require ( github.com/go-co-op/gocron v1.37.0 - github.com/go-co-op/gocron/v2 v2.16.1 + github.com/go-co-op/gocron/v2 v2.16.2 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index 234c7ac..c313a58 100644 --- a/go.sum +++ b/go.sum @@ -5,6 +5,7 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/go-co-op/gocron v1.37.0 h1:ZYDJGtQ4OMhTLKOKMIch+/CY70Brbb1dGdooLEhh7b0= github.com/go-co-op/gocron v1.37.0/go.mod h1:3L/n6BkO7ABj+TrfSVXLRzsP26zmikL4ISkLQ0O8iNY= github.com/go-co-op/gocron/v2 v2.16.1/go.mod h1:opexeOFy5BplhsKdA7bzY9zeYih8I8/WNJ4arTIFPVc= +github.com/go-co-op/gocron/v2 v2.16.2/go.mod h1:4YTLGCCAH75A5RlQ6q+h+VacO7CgjkgP0EJ+BEOXRSI= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= From 629765985b2a82ed143f8923038c9fb85b8e2fee Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 8 Jul 2025 21:38:48 +0200 Subject: [PATCH 13/16] chore(deps): update dependency go to v1.24.5 (#41) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [go](https://go.dev/) ([source](https://github.com/golang/go)) | toolchain | patch | `1.24.4` -> `1.24.5` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/41 Co-authored-by: Renovate Bot Co-committed-by: Renovate Bot --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index de034dd..832f6a8 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module realdnydns go 1.23.0 -toolchain go1.24.4 +toolchain go1.24.5 require ( github.com/go-co-op/gocron v1.37.0 From 531b5baecdcffbb6da9451aa683a4d4fcdf58fc3 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 7 Aug 2025 07:51:56 +0200 Subject: [PATCH 14/16] chore(deps): update dependency go to v1.24.6 (#43) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [go](https://go.dev/) ([source](https://github.com/golang/go)) | toolchain | patch | `1.24.5` -> `1.24.6` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/43 Reviewed-by: t.behrendt Co-authored-by: Renovate Bot Co-committed-by: Renovate Bot --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 832f6a8..8d1c59a 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module realdnydns go 1.23.0 -toolchain go1.24.5 +toolchain go1.24.6 require ( github.com/go-co-op/gocron v1.37.0 From 73615c65ee5f612d0be2695194f127455a65866f Mon Sep 17 00:00:00 2001 From: "t.behrendt" Date: Wed, 20 Aug 2025 09:51:02 +0200 Subject: [PATCH 15/16] ci: chore adjust renovate to combine go toolchain and go docker updates (#47) Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/47 Co-authored-by: t.behrendt Co-committed-by: t.behrendt --- renovate.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/renovate.json b/renovate.json index 7190a60..3608d4c 100644 --- a/renovate.json +++ b/renovate.json @@ -1,3 +1,12 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json" -} + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "packageRules": [ + { + "matchPackageNames": [ + "golang", + "go" + ], + "groupName": "go version" + } + ] +} \ No newline at end of file From bff59f36a876e750d989fa00602832e351dc2e8b Mon Sep 17 00:00:00 2001 From: "t.behrendt" Date: Mon, 25 Aug 2025 12:50:33 +0200 Subject: [PATCH 16/16] chore: fixup go.mod (#49) - Drop toolchain - Sync go version with docker image Reviewed-on: https://gitea.t000-n.de/t.behrendt/realDynDNS/pulls/49 Co-authored-by: t.behrendt Co-committed-by: t.behrendt --- go.mod | 5 +---- go.sum | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 8d1c59a..6484457 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,9 @@ module realdnydns -go 1.23.0 - -toolchain go1.24.6 +go 1.24.0 require ( github.com/go-co-op/gocron v1.37.0 - github.com/go-co-op/gocron/v2 v2.16.2 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index c313a58..5c93bf4 100644 --- a/go.sum +++ b/go.sum @@ -4,8 +4,6 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/go-co-op/gocron v1.37.0 h1:ZYDJGtQ4OMhTLKOKMIch+/CY70Brbb1dGdooLEhh7b0= github.com/go-co-op/gocron v1.37.0/go.mod h1:3L/n6BkO7ABj+TrfSVXLRzsP26zmikL4ISkLQ0O8iNY= -github.com/go-co-op/gocron/v2 v2.16.1/go.mod h1:opexeOFy5BplhsKdA7bzY9zeYih8I8/WNJ4arTIFPVc= -github.com/go-co-op/gocron/v2 v2.16.2/go.mod h1:4YTLGCCAH75A5RlQ6q+h+VacO7CgjkgP0EJ+BEOXRSI= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -32,8 +30,7 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=