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

Appearance settings

Commit 94256b7

Browse filesBrowse files
author
Luca Bianconi
committed
chore(ci): fixed go version for docker builder tags
1 parent a2da084 commit 94256b7
Copy full SHA for 94256b7

File tree

Expand file treeCollapse file tree

4 files changed

+54
-54
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+54
-54
lines changed

‎.github/workflows/publish-go-nightly-task.yml

Copy file name to clipboardExpand all lines: .github/workflows/publish-go-nightly-task.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- Windows_64bit
3232
- Linux_32bit
3333
- Linux_64bit
34-
- Linux_ARMv6
34+
# - Linux_ARMv6
3535
- Linux_ARMv7
3636
- Linux_ARM64
3737
- macOS_64bit

‎.github/workflows/publish-go-tester-task.yml

Copy file name to clipboardExpand all lines: .github/workflows/publish-go-tester-task.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ jobs:
9393
- task: dist:Linux_64bit
9494
path: "*Linux_64bit.tar.gz"
9595
name: Linux_X86-64
96-
- task: dist:Linux_ARMv6
97-
path: "*Linux_ARMv6.tar.gz"
98-
name: Linux_ARMv6
96+
# - task: dist:Linux_ARMv6
97+
# path: "*Linux_ARMv6.tar.gz"
98+
# name: Linux_ARMv6
9999
- task: dist:Linux_ARMv7
100100
path: "*Linux_ARMv7.tar.gz"
101101
name: Linux_ARMv7

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

Copy file name to clipboardExpand all lines: .github/workflows/release-go-task.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- Windows_64bit
2929
- Linux_32bit
3030
- Linux_64bit
31-
- Linux_ARMv6
31+
# - Linux_ARMv6
3232
- Linux_ARMv7
3333
- Linux_ARM64
3434
- macOS_64bit

‎DistTasks.yml

Copy file name to clipboardExpand all lines: DistTasks.yml
+49-49Lines changed: 49 additions & 49 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.19"
22+
GO_VERSION: "1.19.3"
2323

2424
tasks:
2525
Windows_32bit:
@@ -127,54 +127,54 @@ tasks:
127127
PACKAGE_PLATFORM: "Linux_ARMv7"
128128
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz"
129129

130-
Linux_ARMv6:
131-
desc: Builds Linux ARMv6 binaries
132-
dir: "{{.DIST_DIR}}"
133-
cmds:
134-
- |
135-
docker run -v `pwd`/..:/home/build -w /home/build \
136-
-e CGO_ENABLED=0 \
137-
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
138-
--build-cmd "{{.BUILD_COMMAND}}" \
139-
-p "{{.BUILD_PLATFORM}}"
140-
141-
tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}}
142-
143-
vars:
144-
PLATFORM_DIR: "{{.PROJECT_NAME}}_linux_arm_6"
145-
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
146-
BUILD_PLATFORM: "linux/armv6"
147-
# We are experiencing the following error with ARMv6 build:
148-
#
149-
# # github.com/arduino/arduino-cli
150-
# net(.text): unexpected relocation type 296 (R_ARM_V4BX)
151-
# panic: runtime error: invalid memory address or nil pointer dereference
152-
# [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x51ae53]
153-
#
154-
# goroutine 1 [running]:
155-
# cmd/link/internal/loader.(*Loader).SymName(0xc000095c00, 0x0, 0xc0000958d8, 0x5a0ac)
156-
# /usr/local/go/src/cmd/link/internal/loader/loader.go:684 +0x53
157-
# cmd/link/internal/ld.dynrelocsym2(0xc000095880, 0x5a0ac)
158-
# /usr/local/go/src/cmd/link/internal/ld/data.go:777 +0x295
159-
# cmd/link/internal/ld.(*dodataState).dynreloc2(0xc007df9800, 0xc000095880)
160-
# /usr/local/go/src/cmd/link/internal/ld/data.go:794 +0x89
161-
# cmd/link/internal/ld.(*Link).dodata2(0xc000095880, 0xc007d00000, 0x60518, 0x60518)
162-
# /usr/local/go/src/cmd/link/internal/ld/data.go:1434 +0x4d4
163-
# cmd/link/internal/ld.Main(0x8729a0, 0x4, 0x8, 0x1, 0xd, 0xe, 0x0, 0x0, 0x6d7737, 0x12, ...)
164-
# /usr/local/go/src/cmd/link/internal/ld/main.go:302 +0x123a
165-
# main.main()
166-
# /usr/local/go/src/cmd/link/main.go:68 +0x1dc
167-
# Error: failed building for linux/armv6: exit status 2
168-
#
169-
# This seems to be a problem in the go builder 1.16.x that removed support for the R_ARM_V4BX instruction:
170-
# https://github.com/golang/go/pull/44998
171-
# https://groups.google.com/g/golang-codereviews/c/yzN80xxwu2E
172-
#
173-
# Until there is a fix released we must use a recent gcc for Linux_ARMv6 build, so for this
174-
# build we select the debian10 based container.
175-
CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian10"
176-
PACKAGE_PLATFORM: "Linux_ARMv6"
177-
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz"
130+
# Linux_ARMv6:
131+
# desc: Builds Linux ARMv6 binaries
132+
# dir: "{{.DIST_DIR}}"
133+
# cmds:
134+
# - |
135+
# docker run -v `pwd`/..:/home/build -w /home/build \
136+
# -e CGO_ENABLED=0 \
137+
# {{.CONTAINER}}:{{.CONTAINER_TAG}} \
138+
# --build-cmd "{{.BUILD_COMMAND}}" \
139+
# -p "{{.BUILD_PLATFORM}}"
140+
141+
# tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}}
142+
143+
# vars:
144+
# PLATFORM_DIR: "{{.PROJECT_NAME}}_linux_arm_6"
145+
# BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
146+
# BUILD_PLATFORM: "linux/armv6"
147+
# # We are experiencing the following error with ARMv6 build:
148+
# #
149+
# # # github.com/arduino/arduino-cli
150+
# # net(.text): unexpected relocation type 296 (R_ARM_V4BX)
151+
# # panic: runtime error: invalid memory address or nil pointer dereference
152+
# # [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x51ae53]
153+
# #
154+
# # goroutine 1 [running]:
155+
# # cmd/link/internal/loader.(*Loader).SymName(0xc000095c00, 0x0, 0xc0000958d8, 0x5a0ac)
156+
# # /usr/local/go/src/cmd/link/internal/loader/loader.go:684 +0x53
157+
# # cmd/link/internal/ld.dynrelocsym2(0xc000095880, 0x5a0ac)
158+
# # /usr/local/go/src/cmd/link/internal/ld/data.go:777 +0x295
159+
# # cmd/link/internal/ld.(*dodataState).dynreloc2(0xc007df9800, 0xc000095880)
160+
# # /usr/local/go/src/cmd/link/internal/ld/data.go:794 +0x89
161+
# # cmd/link/internal/ld.(*Link).dodata2(0xc000095880, 0xc007d00000, 0x60518, 0x60518)
162+
# # /usr/local/go/src/cmd/link/internal/ld/data.go:1434 +0x4d4
163+
# # cmd/link/internal/ld.Main(0x8729a0, 0x4, 0x8, 0x1, 0xd, 0xe, 0x0, 0x0, 0x6d7737, 0x12, ...)
164+
# # /usr/local/go/src/cmd/link/internal/ld/main.go:302 +0x123a
165+
# # main.main()
166+
# # /usr/local/go/src/cmd/link/main.go:68 +0x1dc
167+
# # Error: failed building for linux/armv6: exit status 2
168+
# #
169+
# # This seems to be a problem in the go builder 1.16.x that removed support for the R_ARM_V4BX instruction:
170+
# # https://github.com/golang/go/pull/44998
171+
# # https://groups.google.com/g/golang-codereviews/c/yzN80xxwu2E
172+
# #
173+
# # Until there is a fix released we must use a recent gcc for Linux_ARMv6 build, so for this
174+
# # build we select the debian10 based container.
175+
# CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian10"
176+
# PACKAGE_PLATFORM: "Linux_ARMv6"
177+
# PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz"
178178

179179
Linux_ARM64:
180180
desc: Builds Linux ARM64 binaries

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.