greenpau / cni-plugins

CNI Plugins compatible with nftables
Apache License 2.0
48 stars 13 forks source link

Install instructions fail with the latest go version 1.20.1 #23

Closed jarppiko closed 1 year ago

jarppiko commented 1 year ago

The very first install command listed on README fails due to chances in go get command :

# go get -u github.com/greenpau/cni-plugins/cmd/cni-nftables-portmap@latest

go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.

# go version
go version go1.20.1 linux/amd64

Resolution

go install github.com/greenpau/cni-plugins/cmd/cni-nftables-portmap@latest
go install github.com/greenpau/cni-plugins/cmd/cni-nftables-firewall@latest