Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade all libraries and set go version to 1.21 #53

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.23"

# 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.23"

# 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.1
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.2.1
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
10 changes: 6 additions & 4 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.23.0"

tasks:
Windows_32bit:
Expand Down Expand Up @@ -184,7 +184,7 @@ tasks:
#
# Until there is a fix released we must use a recent gcc for Linux_ARMv6 build, so for this
# build we select the debian10 based container.
CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian10"
CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian9"
PACKAGE_PLATFORM: "Linux_ARMv6"
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz"

Expand Down Expand Up @@ -215,13 +215,14 @@ tasks:
desc: Builds Mac OS X 64 bit binaries
dir: "{{.DIST_DIR}}"
cmds:
# "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
- |
mkdir {{.PLATFORM_DIR}}
cp ../LICENSE.txt {{.PLATFORM_DIR}}/
docker run -v `pwd`/..:/home/build -w /home/build \
-e CGO_ENABLED=0 \
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
--build-cmd "{{.BUILD_COMMAND}}" \
--build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
-p "{{.BUILD_PLATFORM}}"

tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}}
Expand Down Expand Up @@ -251,13 +252,14 @@ tasks:
desc: Builds Mac OS X ARM64 binaries
dir: "{{.DIST_DIR}}"
cmds:
# "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232
- |
mkdir {{.PLATFORM_DIR}}
cp ../LICENSE.txt {{.PLATFORM_DIR}}/
docker run -v `pwd`/..:/home/build -w /home/build \
-e CGO_ENABLED=0 \
{{.CONTAINER}}:{{.CONTAINER_TAG}} \
--build-cmd "{{.BUILD_COMMAND}}" \
--build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \
-p "{{.BUILD_PLATFORM}}"

tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}}
Expand Down
14 changes: 11 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
module github.com/arduino/mdns-discovery

go 1.16
go 1.23.0

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.1
github.com/arduino/pluggable-discovery-protocol-handler/v2 v2.2.1
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
Loading