Skip to content

Commit

Permalink
upgrade to Go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Jun 24, 2023
1 parent dac38c7 commit 4500a25
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 1,043 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-go@v3
with:
go-version: "^1.19"
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- run: go build .
docker:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: docker/build-push-action@v3
- uses: docker/build-push-action@v4
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM golang:1.19-bullseye AS build
FROM golang:1.20-bookworm AS build
WORKDIR /app
COPY . .
RUN env GOBIN=/build go install .

FROM debian:bullseye
FROM debian:bookworm
COPY --from=build /build/* /
ENTRYPOINT ["/ndpresponder"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ISC License

Copyright (c) 2021-2022, Junxiao Shi
Copyright (c) 2021-2023, Junxiao Shi

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# IPv6 Neighbor Discovery Responder

[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/yoursunny/ndpresponder/build)](https://github.com/yoursunny/ndpresponder/actions) [![GitHub code size](https://img.shields.io/github/languages/code-size/yoursunny/ndpresponder?style=flat&logo=GitHub)](https://github.com/yoursunny/ndpresponder)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/yoursunny/ndpresponder/build.yml)](https://github.com/yoursunny/ndpresponder/actions) [![GitHub code size](https://img.shields.io/github/languages/code-size/yoursunny/ndpresponder?style=flat&logo=GitHub)](https://github.com/yoursunny/ndpresponder)

**ndpresponder** is a Go program that listens for ICMPv6 neighbor solicitations on a network interface and responds with neighbor advertisements, as described in [RFC 4861](https://tools.ietf.org/html/rfc4861) - IPv6 Neighbor Discovery Protocol.

Expand All @@ -15,7 +15,7 @@ It requires both Go compiler and C compiler.
You can compile and install this program with:

```bash
go install github.com/yoursunny/ndpresponder@latest
go install github.com/yoursunny/ndpresponder@main
```

This program is also available as a Docker container:
Expand Down
55 changes: 27 additions & 28 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,47 +1,46 @@
module github.com/yoursunny/ndpresponder

go 1.19
go 1.20

require (
github.com/fsouza/go-dockerclient v1.9.0
github.com/fsouza/go-dockerclient v1.9.7
github.com/google/gopacket v1.1.19
github.com/urfave/cli/v2 v2.20.3
github.com/urfave/cli/v2 v2.25.7
github.com/vishvananda/netlink v1.2.1-beta.2
go.uber.org/zap v1.23.0
golang.org/x/net v0.1.0
golang.org/x/sys v0.1.0
inet.af/netaddr v0.0.0-20220811202034-502d2d690317
go.uber.org/zap v1.24.0
golang.org/x/net v0.11.0
golang.org/x/sys v0.9.0
inet.af/netaddr v0.0.0-20230525184311-b8eac61e914a
)

require (
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Microsoft/go-winio v0.6.0 // indirect
github.com/Microsoft/hcsshim v0.9.3 // indirect
github.com/containerd/cgroups v1.0.3 // indirect
github.com/containerd/containerd v1.6.6 // indirect
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/containerd/containerd v1.7.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/docker/docker v20.10.19+incompatible // indirect
github.com/docker/docker v24.0.2+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/moby/sys/mount v0.3.3 // indirect
github.com/moby/sys/mountinfo v0.6.2 // indirect
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect
github.com/klauspost/compress v1.16.6 // indirect
github.com/moby/patternmatcher v0.5.0 // indirect
github.com/moby/sys/sequential v0.5.0 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799 // indirect
github.com/opencontainers/runc v1.1.2 // indirect
github.com/opencontainers/image-spec v1.1.0-rc3 // indirect
github.com/opencontainers/runc v1.1.7 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/vishvananda/netns v0.0.4 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
go.opencensus.io v0.23.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go4.org/intern v0.0.0-20211027215823-ae77deb06f29 // indirect
go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760 // indirect
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
golang.org/x/tools v0.1.12 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/goleak v1.1.12 // indirect
go.uber.org/multierr v1.11.0 // indirect
go4.org/intern v0.0.0-20230525184215-6c62f75575cb // indirect
go4.org/unsafe/assume-no-moving-gc v0.0.0-20230525183740-e7c30c78aeb2 // indirect
golang.org/x/mod v0.11.0 // indirect
golang.org/x/tools v0.10.0 // indirect
gotest.tools/v3 v3.4.0 // indirect
)
Loading

0 comments on commit 4500a25

Please sign in to comment.