From 2cb46edc7c98dc3a7cb447774061e88328697961 Mon Sep 17 00:00:00 2001 From: Robb Kidd Date: Tue, 26 Sep 2023 05:08:35 -0400 Subject: [PATCH] maint: update target go version 1.20 -> 1.21 (#239) ## Which problem is this PR solving? Current benefit: this removes a warning from my macOS dev environment during builds. ld: warning: '/private/var/folders/c_/shenanigans/T/go-link-2592252367/go.o' has malformed LC_DYSYMTAB, expected 127 undefined symbols to start at index 56715, found 133 undefined symbols starting at index 84 Newer Go is better Go, right? --------- Co-authored-by: Mike Goldsmth --- .tool-versions | 2 +- Dockerfile | 4 ++-- go.mod | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.tool-versions b/.tool-versions index 6d1d0fb7..e4ab54cc 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -golang 1.20.7 +golang 1.21.1 diff --git a/Dockerfile b/Dockerfile index e5bae33f..b27fa228 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20 as base +FROM golang:1.21 as base RUN apt update -yq && apt install -yq make libpcap-dev WORKDIR /src COPY go.* . @@ -12,4 +12,4 @@ COPY --from=base /src/hny-network-agent /bin/hny-network-agent ENTRYPOINT [ "/bin/hny-network-agent" ] FROM base as test -RUN make test \ No newline at end of file +RUN make test diff --git a/go.mod b/go.mod index 4c69c489..79458973 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/honeycombio/honeycomb-network-agent -go 1.20 +go 1.21 require ( github.com/gopacket/gopacket v1.1.1