Jigsaw-Code / outline-sdk

SDK to build network tools based on Outline components.
https://getoutline.org/for-developers/
Apache License 2.0
349 stars 53 forks source link

outline-cli doesn't install #270

Open ProfaneServitor opened 3 months ago

ProfaneServitor commented 3 months ago

System: Ubuntu 20.04.6 LTS

When I attempt to run this:

cd x/examples/
go build -o outline-cli  -ldflags="-extldflags=-static" ./outline-cli

This is the output

go: downloading github.com/Jigsaw-Code/outline-sdk v0.0.17-0.20240726212635-470a9290ec57
go: extracting github.com/Jigsaw-Code/outline-sdk v0.0.17-0.20240726212635-470a9290ec57
go: downloading golang.org/x/sys v0.20.0
go: downloading github.com/eycorsican/go-tun2socks v1.16.11
go: downloading github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
go: downloading golang.org/x/net v0.25.0
go: downloading github.com/vishvananda/netlink v1.1.0
go: downloading github.com/shadowsocks/go-shadowsocks2 v0.1.5
go: downloading golang.org/x/crypto v0.23.0
go: extracting github.com/vishvananda/netlink v1.1.0
go: downloading github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df
go: extracting github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
go: extracting github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df
go: extracting github.com/shadowsocks/go-shadowsocks2 v0.1.5
go: extracting golang.org/x/sys v0.20.0
go: extracting github.com/eycorsican/go-tun2socks v1.16.11
go: extracting golang.org/x/net v0.25.0
go: extracting golang.org/x/crypto v0.23.0
go: finding github.com/Jigsaw-Code/outline-sdk v0.0.17-0.20240726212635-470a9290ec57
go: finding github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
go: finding github.com/vishvananda/netlink v1.1.0
go: finding golang.org/x/sys v0.20.0
go: finding golang.org/x/net v0.25.0
go: finding github.com/eycorsican/go-tun2socks v1.16.11
go: finding github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df
go: finding github.com/shadowsocks/go-shadowsocks2 v0.1.5
go: finding golang.org/x/crypto v0.23.0
build github.com/Jigsaw-Code/outline-sdk/x/examples/outline-cli: cannot load net/netip: malformed module path "net/netip": missing dot in first path element
sbruens commented 3 months ago

Can you specify what Go version you have? The CLI requires Go 1.21.