Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c4e16c9

Browse files
committed
Update supported go version to 1.22.5
1 parent 2313c6c commit c4e16c9

9 files changed

+21
-19
lines changed

‎.github/workflows/check-code-generation-task.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check Code Generation
22

33
env:
44
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
5-
GO_VERSION: "1.17"
5+
GO_VERSION: "1.22"
66

77
on:
88
create:

‎.github/workflows/check-go-dependencies-task.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check Go Dependencies
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.17"
6+
GO_VERSION: "1.22"
77

88
# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
99
on:

‎.github/workflows/check-go-task.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check Go
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.17"
6+
GO_VERSION: "1.22"
77

88
# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
99
on:

‎.github/workflows/check-markdown-task.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check Markdown
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.17"
6+
GO_VERSION: "1.22"
77

88
# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
99
on:

‎.github/workflows/check-mkdocs-task.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check Website
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.17"
6+
GO_VERSION: "1.22"
77

88
# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
99
on:

‎.github/workflows/deploy-cobra-mkdocs-versioned-poetry.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy Website
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.17"
6+
GO_VERSION: "1.22"
77

88
on:
99
push:

‎.github/workflows/test-go-integration-task.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test Integration
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.17"
6+
GO_VERSION: "1.22"
77

88
# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
99
on:

‎.github/workflows/test-go-task.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test Go
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6-
GO_VERSION: "1.17"
6+
GO_VERSION: "1.22"
77

88
# See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
99
on:

‎DistTasks.yml‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ version: "3"
1919

2020
vars:
2121
CONTAINER: "docker.elastic.co/beats-dev/golang-crossbuild"
22-
GO_VERSION: "1.17.8"
22+
GO_VERSION: "1.22.5"
2323

2424
tasks:
2525
Windows_32bit:
@@ -28,7 +28,7 @@ tasks:
2828
cmds:
2929
- |
3030
docker run -v `pwd`/..:/home/build -w /home/build \
31-
-e CGO_ENABLED=1 \
31+
-e CGO_ENABLED=0 \
3232
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
3333
--build-cmd "{{.BUILD_COMMAND}}" \
3434
-p "{{.BUILD_PLATFORM}}"
@@ -49,7 +49,7 @@ tasks:
4949
cmds:
5050
- |
5151
docker run -v `pwd`/..:/home/build -w /home/build \
52-
-e CGO_ENABLED=1 \
52+
-e CGO_ENABLED=0 \
5353
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
5454
--build-cmd "{{.BUILD_COMMAND}}" \
5555
-p "{{.BUILD_PLATFORM}}"
@@ -70,7 +70,7 @@ tasks:
7070
cmds:
7171
- |
7272
docker run -v `pwd`/..:/home/build -w /home/build \
73-
-e CGO_ENABLED=1 \
73+
-e CGO_ENABLED=0 \
7474
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
7575
--build-cmd "{{.BUILD_COMMAND}}" \
7676
-p "{{.BUILD_PLATFORM}}"
@@ -91,7 +91,7 @@ tasks:
9191
cmds:
9292
- |
9393
docker run -v `pwd`/..:/home/build -w /home/build \
94-
-e CGO_ENABLED=1 \
94+
-e CGO_ENABLED=0 \
9595
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
9696
--build-cmd "{{.BUILD_COMMAND}}" \
9797
-p "{{.BUILD_PLATFORM}}"
@@ -112,7 +112,7 @@ tasks:
112112
cmds:
113113
- |
114114
docker run -v `pwd`/..:/home/build -w /home/build \
115-
-e CGO_ENABLED=1 \
115+
-e CGO_ENABLED=0 \
116116
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
117117
--build-cmd "{{.BUILD_COMMAND}}" \
118118
-p "{{.BUILD_PLATFORM}}"
@@ -133,7 +133,7 @@ tasks:
133133
cmds:
134134
- |
135135
docker run -v `pwd`/..:/home/build -w /home/build \
136-
-e CGO_ENABLED=1 \
136+
-e CGO_ENABLED=0 \
137137
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
138138
--build-cmd "{{.BUILD_COMMAND}}" \
139139
-p "{{.BUILD_PLATFORM}}"
@@ -172,7 +172,7 @@ tasks:
172172
#
173173
# Until there is a fix released we must use a recent gcc for Linux_ARMv6 build, so for this
174174
# build we select the debian10 based container.
175-
CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian10"
175+
CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian9"
176176
PACKAGE_PLATFORM: "Linux_ARMv6"
177177
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz"
178178

@@ -182,7 +182,7 @@ tasks:
182182
cmds:
183183
- |
184184
docker run -v `pwd`/..:/home/build -w /home/build \
185-
-e CGO_ENABLED=1 \
185+
-e CGO_ENABLED=0 \
186186
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
187187
--build-cmd "{{.BUILD_COMMAND}}" \
188188
-p "{{.BUILD_PLATFORM}}"
@@ -201,11 +201,12 @@ tasks:
201201
desc: Builds Mac OS X 64 bit binaries
202202
dir: "{{.DIST_DIR}}"
203203
cmds:
204+
# "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
204205
- |
205206
docker run -v `pwd`/..:/home/build -w /home/build \
206207
-e CGO_ENABLED=1 \
207208
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
208-
--build-cmd "{{.BUILD_COMMAND}}" \
209+
--build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
209210
-p "{{.BUILD_PLATFORM}}"
210211
211212
tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}}
@@ -235,11 +236,12 @@ tasks:
235236
desc: Builds Mac OS X ARM64 binaries
236237
dir: "{{.DIST_DIR}}"
237238
cmds:
239+
# "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
238240
- |
239241
docker run -v `pwd`/..:/home/build -w /home/build \
240242
-e CGO_ENABLED=1 \
241243
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
242-
--build-cmd "{{.BUILD_COMMAND}}" \
244+
--build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
243245
-p "{{.BUILD_PLATFORM}}"
244246
245247
tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /