katalix / go-l2tp

Go library for building L2TP applications on Linux systems
MIT License
45 stars 15 forks source link

README.md installation instructions #3

Closed dkosovic closed 1 year ago

dkosovic commented 3 years ago

The README.md installation instructions say to do go get github.com/katalix/go-l2tp, but that results in the following error:

$ go get github.com/katalix/go-l2tp
package github.com/katalix/go-l2tp: no Go files in /home/foo/go/src/github.com/katalix/go-l2tp

I believe the instructions should actually be go get github.com/katalix/go-l2tp/...

dkosovic commented 2 years ago

With Go >= 1.17 it should be :

go install "github.com/katalix/go-l2tp/...@latest"

As the following now happens with go get :

$ go get github.com/katalix/go-l2tp/...
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'.
tomparkin commented 1 year ago

Thanks @dkosovic and I'm sorry I missed this issue! For whatever reason my github notifications were not working :-|

I will look into updating the documentation as suggested.