Skip to content

Commit 435f658

Browse files
committed
Upgrade to 1.24
Remove rotten protoc-gen-doc Upgrade tools version to correspond to those in general codebase. Use new avid-tools Add .gitattributes Add dependabot.yml Install protoc-gen-doc binary in ci workflow AB#10624 Signed-off-by: Paul Hewlett <[email protected]>
1 parent 8ad882c commit 435f658

File tree

10 files changed

+116
-120
lines changed

10 files changed

+116
-120
lines changed

.env.tools

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export TOOLS_BUILDNUMBER=20241108.3
1+
export TOOLS_BUILDNUMBER=20250328.1

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/go.sum -diff -merge
2+
**/go.sum linguist-generated=true

.github/dependabot.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# refer: https://github.com/dependabot/dependabot-core/blob/main/.github/dependabot.yml
2+
version: 2
3+
registries:
4+
github-octocat:
5+
type: git
6+
url: https://github.com
7+
username: x-access-token
8+
password: ${{ secrets.DEPENDABOT_PAT }}
9+
10+
updates:
11+
# Maintain dependencies for GitHub Actions
12+
- package-ecosystem: "github-actions"
13+
registries:
14+
- github-octocat
15+
directory: "/"
16+
schedule:
17+
# Check for updates managed by Composer once a week
18+
interval: "weekly"
19+
day: "wednesday"
20+
time: "03:00"
21+
timezone: "Europe/London"
22+
23+
# Maintain dependencies for Golang
24+
- package-ecosystem: "gomod"
25+
registries:
26+
- github-octocat
27+
directory: "src/"
28+
schedule:
29+
# Check for updates managed by Composer once a week
30+
interval: "weekly"
31+
day: "wednesday"
32+
time: "03:00"
33+
timezone: "Europe/London"

.github/workflows/ci.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,33 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
1314
- name: Setup go-task
1415
uses: arduino/setup-task@v1
1516
with:
1617
version: 3.x
1718
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
1820
- name: Setup Go
1921
uses: actions/setup-go@v4
2022
with:
21-
go-version: '1.22.x'
23+
go-version: '1.24.x'
2224
token: ${{ secrets.GITHUB_TOKEN }}
2325
cache-dependency-path: |
2426
datatrails-common-api/go.sum
27+
2528
- name: Setup protobuf
2629
uses: arduino/setup-protoc@v2
2730
with:
2831
version: "24.3"
2932
repo-token: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Setup protoc-gen-doc
35+
run: |
36+
# download protoc-gen-doc as binary
37+
go install github.com/pseudomuto/protoc-gen-doc/cmd/[email protected]
38+
which protoc-gen-doc
39+
3040
- name: Generate, Test and Export
3141
run: |
3242
task all

datatrails-common-api/go.mod

+14-27
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,41 @@ module github.com/datatrails/go-datatrails-common-api-gen
33
// Note: the go code is hosted in github.com/datatrails/go-datatrails-common-api-gen
44
// hence the module name
55

6-
go 1.22
6+
go 1.24
77

88
// This allows this module to operate as tho it were the generated module. This
99
// allows us to manage the proto tool dependencies via this go.mod. This go.mod
1010
// is also used as the go.mod for the generated package.
1111
// replace github.com/datatrails/go-datatrails-common-api-gen => ./
1212

1313
require (
14-
github.com/datatrails/go-datatrails-common v0.18.1
15-
github.com/envoyproxy/protoc-gen-validate v1.0.4
14+
github.com/datatrails/go-datatrails-common v0.26.0
15+
github.com/envoyproxy/protoc-gen-validate v1.2.1
1616
github.com/google/uuid v1.6.0
17-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0
18-
github.com/lyft/protoc-gen-star/v2 v2.0.3
19-
github.com/pseudomuto/protoc-gen-doc v1.5.1
17+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0
18+
github.com/lyft/protoc-gen-star/v2 v2.0.4-0.20230330145011-496ad1ac90a4
2019
github.com/spf13/afero v1.10.0
21-
github.com/stretchr/testify v1.9.0
20+
github.com/stretchr/testify v1.10.0
2221
go.mongodb.org/mongo-driver v1.12.1
23-
google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094
24-
google.golang.org/grpc v1.65.0
25-
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0
26-
google.golang.org/protobuf v1.34.2
22+
google.golang.org/genproto/googleapis/api v0.0.0-20250227231956-55c901821b1e
23+
google.golang.org/grpc v1.70.0
24+
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1
25+
google.golang.org/protobuf v1.36.5
2726
gopkg.in/yaml.v3 v3.0.1
2827
)
2928

3029
require (
31-
github.com/Masterminds/goutils v1.1.1 // indirect
32-
github.com/Masterminds/semver v1.5.0 // indirect
33-
github.com/Masterminds/sprig v2.22.0+incompatible // indirect
3430
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
35-
github.com/gogo/protobuf v1.3.2 // indirect
36-
github.com/golang/protobuf v1.5.4 // indirect
37-
github.com/huandu/xstrings v1.4.0 // indirect
3831
github.com/iancoleman/strcase v0.3.0 // indirect
39-
github.com/imdario/mergo v0.3.16 // indirect
40-
github.com/mitchellh/copystructure v1.2.0 // indirect
41-
github.com/mitchellh/reflectwalk v1.0.2 // indirect
42-
github.com/mwitkow/go-proto-validators v0.3.2 // indirect
4332
github.com/opentracing/opentracing-go v1.2.0 // indirect
4433
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
45-
github.com/pseudomuto/protokit v0.2.1 // indirect
4634
github.com/rogpeppe/go-internal v1.6.1 // indirect
4735
go.uber.org/multierr v1.11.0 // indirect
4836
go.uber.org/zap v1.27.0 // indirect
49-
golang.org/x/crypto v0.25.0 // indirect
5037
golang.org/x/mod v0.17.0 // indirect
51-
golang.org/x/net v0.27.0 // indirect
52-
golang.org/x/sys v0.22.0 // indirect
53-
golang.org/x/text v0.16.0 // indirect
38+
golang.org/x/net v0.37.0 // indirect
39+
golang.org/x/sys v0.31.0 // indirect
40+
golang.org/x/text v0.23.0 // indirect
5441
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
55-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
42+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250227231956-55c901821b1e // indirect
5643
)

0 commit comments

Comments
 (0)