Skip to content

Commit

Permalink
Upgrade all libraries and set go version to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Dec 5, 2023
1 parent 6a0ce68 commit 1ade4ef
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 748 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-go-dependencies-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check Go Dependencies

env:
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
GO_VERSION: "1.16"
GO_VERSION: "1.21"

# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-go-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check Go

env:
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
GO_VERSION: "1.16"
GO_VERSION: "1.21"

# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
on:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: github.com/arduino/go-paths-helper
version: v1.6.1
version: v1.10.0
type: go
summary:
homepage: https://pkg.go.dev/github.com/arduino/go-paths-helper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: github.com/arduino/go-properties-orderedmap
version: v1.6.0
version: v1.8.0
type: go
summary: Package properties is a library for handling maps of hierarchical properties.
homepage: https://pkg.go.dev/github.com/arduino/go-properties-orderedmap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
name: github.com/arduino/pluggable-discovery-protocol-handler/v2
version: v2.0.2
version: v2.1.2
type: go
summary: Package discovery is a library for handling the Arduino Pluggable-Discovery
protocol (https://github.com/arduino/tooling-rfcs/blob/main/RFCs/0002-pluggable-discovery.md#pluggable-discovery-api-via-stdinstdout)
The library implements the state machine and the parsing logic to communicate with
a pluggable-discovery client.
homepage: https://pkg.go.dev/github.com/arduino/pluggable-discovery-protocol-handler/v2
license: other
licenses:
Expand Down
6 changes: 3 additions & 3 deletions .licenses/mdns-discovery/go/golang.org/x/net/bpf.dep.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: golang.org/x/net/bpf
version: v0.0.0-20210505024714-0287a6fb4125
version: v0.19.0
type: go
summary: Package bpf implements marshaling and unmarshaling of programs for the Berkeley
Packet Filter virtual machine, and provides a Go implementation of the virtual machine.
homepage: https://pkg.go.dev/golang.org/x/net/bpf
license: bsd-3-clause
licenses:
- sources: net@v0.0.0-20210505024714-0287a6fb4125/LICENSE
- sources: net@v0.19.0/LICENSE
text: |
Copyright (c) 2009 The Go Authors. All rights reserved.
Expand Down Expand Up @@ -36,7 +36,7 @@ licenses:
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- sources: net@v0.0.0-20210505024714-0287a6fb4125/PATENTS
- sources: net@v0.19.0/PATENTS
text: |
Additional IP Rights Grant (Patents)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: golang.org/x/net/internal/iana
version: v0.0.0-20210505024714-0287a6fb4125
version: v0.19.0
type: go
summary: Package iana provides protocol number resources managed by the Internet Assigned
Numbers Authority (IANA).
homepage: https://pkg.go.dev/golang.org/x/net/internal/iana
license: bsd-3-clause
licenses:
- sources: net@v0.0.0-20210505024714-0287a6fb4125/LICENSE
- sources: net@v0.19.0/LICENSE
text: |
Copyright (c) 2009 The Go Authors. All rights reserved.
Expand Down Expand Up @@ -36,7 +36,7 @@ licenses:
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- sources: net@v0.0.0-20210505024714-0287a6fb4125/PATENTS
- sources: net@v0.19.0/PATENTS
text: |
Additional IP Rights Grant (Patents)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
name: golang.org/x/net/internal/socket
version: v0.0.0-20210505024714-0287a6fb4125
version: v0.19.0
type: go
summary: Package socket provides a portable interface for socket system calls.
homepage: https://pkg.go.dev/golang.org/x/net/internal/socket
license: bsd-3-clause
licenses:
- sources: net@v0.0.0-20210505024714-0287a6fb4125/LICENSE
- sources: net@v0.19.0/LICENSE
text: |
Copyright (c) 2009 The Go Authors. All rights reserved.
Expand Down Expand Up @@ -35,7 +35,7 @@ licenses:
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- sources: net@v0.0.0-20210505024714-0287a6fb4125/PATENTS
- sources: net@v0.19.0/PATENTS
text: |
Additional IP Rights Grant (Patents)
Expand Down
6 changes: 3 additions & 3 deletions .licenses/mdns-discovery/go/golang.org/x/net/ipv4.dep.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: golang.org/x/net/ipv4
version: v0.0.0-20210505024714-0287a6fb4125
version: v0.19.0
type: go
summary: Package ipv4 implements IP-level socket options for the Internet Protocol
version 4.
homepage: https://pkg.go.dev/golang.org/x/net/ipv4
license: bsd-3-clause
licenses:
- sources: net@v0.0.0-20210505024714-0287a6fb4125/LICENSE
- sources: net@v0.19.0/LICENSE
text: |
Copyright (c) 2009 The Go Authors. All rights reserved.
Expand Down Expand Up @@ -36,7 +36,7 @@ licenses:
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- sources: net@v0.0.0-20210505024714-0287a6fb4125/PATENTS
- sources: net@v0.19.0/PATENTS
text: |
Additional IP Rights Grant (Patents)
Expand Down
6 changes: 3 additions & 3 deletions .licenses/mdns-discovery/go/golang.org/x/net/ipv6.dep.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: golang.org/x/net/ipv6
version: v0.0.0-20210505024714-0287a6fb4125
version: v0.19.0
type: go
summary: Package ipv6 implements IP-level socket options for the Internet Protocol
version 6.
homepage: https://pkg.go.dev/golang.org/x/net/ipv6
license: bsd-3-clause
licenses:
- sources: net@v0.0.0-20210505024714-0287a6fb4125/LICENSE
- sources: net@v0.19.0/LICENSE
text: |
Copyright (c) 2009 The Go Authors. All rights reserved.
Expand Down Expand Up @@ -36,7 +36,7 @@ licenses:
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- sources: net@v0.0.0-20210505024714-0287a6fb4125/PATENTS
- sources: net@v0.19.0/PATENTS
text: |
Additional IP Rights Grant (Patents)
Expand Down

This file was deleted.

6 changes: 3 additions & 3 deletions .licenses/mdns-discovery/go/golang.org/x/sys/unix.dep.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
name: golang.org/x/sys/unix
version: v0.0.0-20210823070655-63515b42dcdf
version: v0.15.0
type: go
summary: Package unix contains an interface to the low-level operating system primitives.
homepage: https://pkg.go.dev/golang.org/x/sys/unix
license: bsd-3-clause
licenses:
- sources: sys@v0.0.0-20210823070655-63515b42dcdf/LICENSE
- sources: sys@v0.15.0/LICENSE
text: |
Copyright (c) 2009 The Go Authors. All rights reserved.
Expand Down Expand Up @@ -35,7 +35,7 @@ licenses:
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- sources: sys@v0.0.0-20210823070655-63515b42dcdf/PATENTS
- sources: sys@v0.15.0/PATENTS
text: |
Additional IP Rights Grant (Patents)
Expand Down
6 changes: 3 additions & 3 deletions DistTasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ version: "3"

vars:
CONTAINER: "docker.elastic.co/beats-dev/golang-crossbuild"
GO_VERSION: "1.16.4"
GO_VERSION: "1.21.4"

tasks:
Windows_32bit:
Expand Down Expand Up @@ -178,7 +178,7 @@ tasks:
# /usr/local/go/src/cmd/link/main.go:68 +0x1dc
# Error: failed building for linux/armv6: exit status 2
#
# This seems to be a problem in the go builder 1.16.x that removed support for the R_ARM_V4BX instruction:
# This seems to be a problem in the go builder 1.21.x that removed support for the R_ARM_V4BX instruction:
# https://github.com/golang/go/pull/44998
# https://groups.google.com/g/golang-codereviews/c/yzN80xxwu2E
#
Expand Down Expand Up @@ -238,7 +238,7 @@ tasks:
# ld: symbol(s) not found for architecture x86_64
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
#
# The reason seems that go 1.16.x use a macos API which is available since 10.12
# The reason seems that go 1.21.x use a macos API which is available since 10.12
# https://github.com/techknowlogick/xgo/issues/100#issuecomment-780894190
#
# To compile it we need an SDK >=10.12 so we use the debian10 based container that
Expand Down
16 changes: 13 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
module github.com/arduino/mdns-discovery

go 1.16
go 1.21

toolchain go1.21.1

require (
github.com/arduino/go-properties-orderedmap v1.6.0
github.com/arduino/pluggable-discovery-protocol-handler/v2 v2.0.2
github.com/arduino/go-properties-orderedmap v1.8.0
github.com/arduino/pluggable-discovery-protocol-handler/v2 v2.1.2
github.com/hashicorp/mdns v1.0.5
)

require (
github.com/arduino/go-paths-helper v1.10.0 // indirect
github.com/miekg/dns v1.1.43 // indirect
github.com/pkg/errors v0.9.1 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.15.0 // indirect
)
Loading

0 comments on commit 1ade4ef

Please sign in to comment.