cloudflare / odoh-client-go

Oblivious DoH client
MIT License
80 stars 19 forks source link

Errors during "go build -o odoh-client ./cmd/..." #25

Open rjetty opened 2 years ago

rjetty commented 2 years ago

I am seeing below errors on my ubuntu machine

root@doh-client:~/odoh-client-go# go build -o odoh-client ./cmd/... cmd/odoh-client.go:9:2: cannot find package "github.com/cloudflare/odoh-client-go/commands" in any of: /usr/src/github.com/cloudflare/odoh-client-go/commands (from $GOROOT) /root/go/src/github.com/cloudflare/odoh-client-go/commands (from $GOPATH) cmd/odoh-client.go:10:2: cannot find package "github.com/urfave/cli" in any of: /usr/src/github.com/urfave/cli (from $GOROOT) /root/go/src/github.com/urfave/cli (from $GOPATH)

anilchowdary2050 commented 1 year ago

I am also facing the same error when I am building the executable.

root@ubuntuclient:~/oDOH/odoh-client-go-master# go build -o odoh-client ./cmd/... cmd/odoh-client.go:9:2: cannot find package "github.com/cloudflare/odoh-client-go/commands" in any of: /usr/lib/go-1.10/src/github.com/cloudflare/odoh-client-go/commands (from $GOROOT) /root/go/src/github.com/cloudflare/odoh-client-go/commands (from $GOPATH) cmd/odoh-client.go:10:2: cannot find package "github.com/urfave/cli" in any of: /usr/lib/go-1.10/src/github.com/urfave/cli (from $GOROOT) /root/go/src/github.com/urfave/cli (from $GOPATH)

How are you able to solve this issue?

anilchowdary2050 commented 1 year ago

Looks like it is an issue with Ubuntu, I am able to build the client on centos.