Skip to content

Commit 72657c9

Browse files
authored
Merge pull request #53 from arduino/update_libs
Upgrade all libraries and set go version to 1.21
2 parents 3044ec7 + 3d3e3d0 commit 72657c9

File tree

15 files changed

+54
-749
lines changed

15 files changed

+54
-749
lines changed

.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.16"
6+
GO_VERSION: "1.23"
77

88
# See: https://docs.github.com/actions/using-workflows/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.16"
6+
GO_VERSION: "1.23"
77

88
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
99
on:

.licenses/mdns-discovery/go/github.com/arduino/go-paths-helper.dep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: github.com/arduino/go-paths-helper
3-
version: v1.6.1
3+
version: v1.10.0
44
type: go
55
summary:
66
homepage: https://pkg.go.dev/github.com/arduino/go-paths-helper

.licenses/mdns-discovery/go/github.com/arduino/go-properties-orderedmap.dep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: github.com/arduino/go-properties-orderedmap
3-
version: v1.6.0
3+
version: v1.8.1
44
type: go
55
summary: Package properties is a library for handling maps of hierarchical properties.
66
homepage: https://pkg.go.dev/github.com/arduino/go-properties-orderedmap

.licenses/mdns-discovery/go/github.com/arduino/pluggable-discovery-protocol-handler/v2.dep.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
name: github.com/arduino/pluggable-discovery-protocol-handler/v2
3-
version: v2.0.2
3+
version: v2.2.1
44
type: go
55
summary: Package discovery is a library for handling the Arduino Pluggable-Discovery
66
protocol (https://github.com/arduino/tooling-rfcs/blob/main/RFCs/0002-pluggable-discovery.md#pluggable-discovery-api-via-stdinstdout)
7-
The library implements the state machine and the parsing logic to communicate with
8-
a pluggable-discovery client.
97
homepage: https://pkg.go.dev/github.com/arduino/pluggable-discovery-protocol-handler/v2
108
license: other
119
licenses:

.licenses/mdns-discovery/go/golang.org/x/net/bpf.dep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: golang.org/x/net/bpf
3-
version: v0.0.0-20210505024714-0287a6fb4125
3+
version: v0.19.0
44
type: go
55
summary: Package bpf implements marshaling and unmarshaling of programs for the Berkeley
66
Packet Filter virtual machine, and provides a Go implementation of the virtual machine.
77
homepage: https://pkg.go.dev/golang.org/x/net/bpf
88
license: bsd-3-clause
99
licenses:
10-
- sources: net@v0.0.0-20210505024714-0287a6fb4125/LICENSE
10+
- sources: net@v0.19.0/LICENSE
1111
text: |
1212
Copyright (c) 2009 The Go Authors. All rights reserved.
1313
@@ -36,7 +36,7 @@ licenses:
3636
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3737
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3838
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39-
- sources: net@v0.0.0-20210505024714-0287a6fb4125/PATENTS
39+
- sources: net@v0.19.0/PATENTS
4040
text: |
4141
Additional IP Rights Grant (Patents)
4242

.licenses/mdns-discovery/go/golang.org/x/net/internal/iana.dep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: golang.org/x/net/internal/iana
3-
version: v0.0.0-20210505024714-0287a6fb4125
3+
version: v0.19.0
44
type: go
55
summary: Package iana provides protocol number resources managed by the Internet Assigned
66
Numbers Authority (IANA).
77
homepage: https://pkg.go.dev/golang.org/x/net/internal/iana
88
license: bsd-3-clause
99
licenses:
10-
- sources: net@v0.0.0-20210505024714-0287a6fb4125/LICENSE
10+
- sources: net@v0.19.0/LICENSE
1111
text: |
1212
Copyright (c) 2009 The Go Authors. All rights reserved.
1313
@@ -36,7 +36,7 @@ licenses:
3636
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3737
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3838
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39-
- sources: net@v0.0.0-20210505024714-0287a6fb4125/PATENTS
39+
- sources: net@v0.19.0/PATENTS
4040
text: |
4141
Additional IP Rights Grant (Patents)
4242

.licenses/mdns-discovery/go/golang.org/x/net/internal/socket.dep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
name: golang.org/x/net/internal/socket
3-
version: v0.0.0-20210505024714-0287a6fb4125
3+
version: v0.19.0
44
type: go
55
summary: Package socket provides a portable interface for socket system calls.
66
homepage: https://pkg.go.dev/golang.org/x/net/internal/socket
77
license: bsd-3-clause
88
licenses:
9-
- sources: net@v0.0.0-20210505024714-0287a6fb4125/LICENSE
9+
- sources: net@v0.19.0/LICENSE
1010
text: |
1111
Copyright (c) 2009 The Go Authors. All rights reserved.
1212
@@ -35,7 +35,7 @@ licenses:
3535
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3636
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3737
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38-
- sources: net@v0.0.0-20210505024714-0287a6fb4125/PATENTS
38+
- sources: net@v0.19.0/PATENTS
3939
text: |
4040
Additional IP Rights Grant (Patents)
4141

.licenses/mdns-discovery/go/golang.org/x/net/ipv4.dep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: golang.org/x/net/ipv4
3-
version: v0.0.0-20210505024714-0287a6fb4125
3+
version: v0.19.0
44
type: go
55
summary: Package ipv4 implements IP-level socket options for the Internet Protocol
66
version 4.
77
homepage: https://pkg.go.dev/golang.org/x/net/ipv4
88
license: bsd-3-clause
99
licenses:
10-
- sources: net@v0.0.0-20210505024714-0287a6fb4125/LICENSE
10+
- sources: net@v0.19.0/LICENSE
1111
text: |
1212
Copyright (c) 2009 The Go Authors. All rights reserved.
1313
@@ -36,7 +36,7 @@ licenses:
3636
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3737
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3838
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39-
- sources: net@v0.0.0-20210505024714-0287a6fb4125/PATENTS
39+
- sources: net@v0.19.0/PATENTS
4040
text: |
4141
Additional IP Rights Grant (Patents)
4242

.licenses/mdns-discovery/go/golang.org/x/net/ipv6.dep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: golang.org/x/net/ipv6
3-
version: v0.0.0-20210505024714-0287a6fb4125
3+
version: v0.19.0
44
type: go
55
summary: Package ipv6 implements IP-level socket options for the Internet Protocol
66
version 6.
77
homepage: https://pkg.go.dev/golang.org/x/net/ipv6
88
license: bsd-3-clause
99
licenses:
10-
- sources: net@v0.0.0-20210505024714-0287a6fb4125/LICENSE
10+
- sources: net@v0.19.0/LICENSE
1111
text: |
1212
Copyright (c) 2009 The Go Authors. All rights reserved.
1313
@@ -36,7 +36,7 @@ licenses:
3636
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3737
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3838
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39-
- sources: net@v0.0.0-20210505024714-0287a6fb4125/PATENTS
39+
- sources: net@v0.19.0/PATENTS
4040
text: |
4141
Additional IP Rights Grant (Patents)
4242

.licenses/mdns-discovery/go/golang.org/x/sys/internal/unsafeheader.dep.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.licenses/mdns-discovery/go/golang.org/x/sys/unix.dep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
name: golang.org/x/sys/unix
3-
version: v0.0.0-20210823070655-63515b42dcdf
3+
version: v0.15.0
44
type: go
55
summary: Package unix contains an interface to the low-level operating system primitives.
66
homepage: https://pkg.go.dev/golang.org/x/sys/unix
77
license: bsd-3-clause
88
licenses:
9-
- sources: sys@v0.0.0-20210823070655-63515b42dcdf/LICENSE
9+
- sources: sys@v0.15.0/LICENSE
1010
text: |
1111
Copyright (c) 2009 The Go Authors. All rights reserved.
1212
@@ -35,7 +35,7 @@ licenses:
3535
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3636
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3737
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38-
- sources: sys@v0.0.0-20210823070655-63515b42dcdf/PATENTS
38+
- sources: sys@v0.15.0/PATENTS
3939
text: |
4040
Additional IP Rights Grant (Patents)
4141

DistTasks.yml

Lines changed: 6 additions & 4 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.16.4"
22+
GO_VERSION: "1.23.0"
2323

2424
tasks:
2525
Windows_32bit:
@@ -184,7 +184,7 @@ tasks:
184184
#
185185
# Until there is a fix released we must use a recent gcc for Linux_ARMv6 build, so for this
186186
# build we select the debian10 based container.
187-
CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian10"
187+
CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian9"
188188
PACKAGE_PLATFORM: "Linux_ARMv6"
189189
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz"
190190

@@ -215,13 +215,14 @@ tasks:
215215
desc: Builds Mac OS X 64 bit binaries
216216
dir: "{{.DIST_DIR}}"
217217
cmds:
218+
# "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
218219
- |
219220
mkdir {{.PLATFORM_DIR}}
220221
cp ../LICENSE.txt {{.PLATFORM_DIR}}/
221222
docker run -v `pwd`/..:/home/build -w /home/build \
222223
-e CGO_ENABLED=0 \
223224
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
224-
--build-cmd "{{.BUILD_COMMAND}}" \
225+
--build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
225226
-p "{{.BUILD_PLATFORM}}"
226227
227228
tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}}
@@ -251,13 +252,14 @@ tasks:
251252
desc: Builds Mac OS X ARM64 binaries
252253
dir: "{{.DIST_DIR}}"
253254
cmds:
255+
# "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
254256
- |
255257
mkdir {{.PLATFORM_DIR}}
256258
cp ../LICENSE.txt {{.PLATFORM_DIR}}/
257259
docker run -v `pwd`/..:/home/build -w /home/build \
258260
-e CGO_ENABLED=0 \
259261
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
260-
--build-cmd "{{.BUILD_COMMAND}}" \
262+
--build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
261263
-p "{{.BUILD_PLATFORM}}"
262264
263265
tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}}

go.mod

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
module github.com/arduino/mdns-discovery
22

3-
go 1.16
3+
go 1.23.0
44

55
require (
6-
github.com/arduino/go-properties-orderedmap v1.6.0
7-
github.com/arduino/pluggable-discovery-protocol-handler/v2 v2.0.2
6+
github.com/arduino/go-properties-orderedmap v1.8.1
7+
github.com/arduino/pluggable-discovery-protocol-handler/v2 v2.2.1
88
github.com/hashicorp/mdns v1.0.5
99
)
10+
11+
require (
12+
github.com/arduino/go-paths-helper v1.10.0 // indirect
13+
github.com/miekg/dns v1.1.43 // indirect
14+
github.com/pkg/errors v0.9.1 // indirect
15+
golang.org/x/net v0.19.0 // indirect
16+
golang.org/x/sys v0.15.0 // indirect
17+
)

0 commit comments

Comments
 (0)