Skip to content

Commit bdf0800

Browse files
authored
Merge pull request #317 from fluxcd/go-1.24
Update dependencies and Go to 1.24
2 parents c5ac33c + e42369a commit bdf0800

33 files changed

+173
-131
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Go
1616
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
1717
with:
18-
go-version: 1.23.x
18+
go-version: 1.24.x
1919
cache: true
2020
- name: Run vet
2121
run: make tidy fmt vet

.github/workflows/e2e-gitea.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Go
2121
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
2222
with:
23-
go-version: 1.23.x
23+
go-version: 1.24.x
2424
cache: true
2525
- name: Start Provider instances
2626
run: make start-provider-instances-gitea GITEA_VERSION=1.21.1@sha256:63165c64759c98e55f0afdb5fc3be64cbb27180d3474e951fa027228e6955029

.github/workflows/e2e-github.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Go
1919
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
2020
with:
21-
go-version: 1.23.x
21+
go-version: 1.24.x
2222
cache: true
2323
- name: Run tests
2424
run: |

.github/workflows/e2e-gitlab.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Go
2121
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
2222
with:
23-
go-version: 1.23.x
23+
go-version: 1.24.x
2424
cache: true
2525
- name: Start Provider instances
2626
run: make start-provider-instances-gitlab

.github/workflows/e2e-stash.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Go
1919
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
2020
with:
21-
go-version: 1.23.x
21+
go-version: 1.24.x
2222
cache: true
2323
- name: Run tests
2424
run: |

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Go
1717
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
1818
with:
19-
go-version: 1.23.x
19+
go-version: 1.24.x
2020
cache: true
2121
- name: Download release notes utility
2222
env:

.github/workflows/scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Go
2424
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
2525
with:
26-
go-version: 1.23.x
26+
go-version: 1.24.x
2727
cache: true
2828
- name: Initialize CodeQL
2929
uses: github/codeql-action/init@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ TEST_PATTERN?=./...
44
all: test
55

66
tidy:
7-
go mod tidy -compat=1.22
7+
go mod tidy -compat=1.24
88

99
fmt:
1010
go fmt ./...

gitea/client_repository_tree.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import (
2020
"context"
2121
"strings"
2222

23+
"code.gitea.io/sdk/gitea"
24+
2325
"github.com/fluxcd/go-git-providers/gitprovider"
2426
)
2527

@@ -34,7 +36,10 @@ type TreeClient struct {
3436

3537
// Get returns a tree
3638
func (c *TreeClient) Get(ctx context.Context, sha string, recursive bool) (*gitprovider.TreeInfo, error) {
37-
tree, resp, err := c.c.GetTrees(c.ref.GetIdentity(), c.ref.GetRepository(), sha, recursive)
39+
tree, resp, err := c.c.GetTrees(c.ref.GetIdentity(), c.ref.GetRepository(), gitea.ListTreeOptions{
40+
Ref: sha,
41+
Recursive: recursive,
42+
})
3843
if err != nil {
3944
return nil, handleHTTPError(resp, err)
4045
}

github/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package github
1919
import (
2020
"fmt"
2121

22-
"github.com/google/go-github/v66/github"
22+
"github.com/google/go-github/v71/github"
2323

2424
"github.com/fluxcd/go-git-providers/gitprovider"
2525
)

0 commit comments

Comments
 (0)