transocks icon indicating copy to clipboard operation
transocks copied to clipboard

trying to install throwing an error

Open JeevansSP opened this issue 2 years ago • 2 comments

f1@LagMachine:~$ go get -u github.com/cybozu-go/transocks/...

package github.com/cybozu-go/transocks imports math/bits: unrecognized import path "math/bits" (import path does not begin with hostname)

package github.com/cybozu-go/transocks imports github.com/apparentlymart/go-textseg/v13/textseg: cannot find package "github.com/apparentlymart/go-textseg/v13/textseg" in any of: /usr/local/go/src/github.com/apparentlymart/go-textseg/v13/textseg (from $GOROOT) /home/f1/tutorialspoint/sample/src/github.com/apparentlymart/go-textseg/v13/textseg (from $GOPATH)

package github.com/cybozu-go/transocks imports github.com/hashicorp/hcl/hcl/printer: cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of: /usr/local/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOROOT) /home/f1/tutorialspoint/sample/src/github.com/hashicorp/hcl/hcl/printer (from $GOPATH)

package github.com/cybozu-go/transocks imports github.com/pelletier/go-toml/v2/internal/ast: cannot find package "github.com/pelletier/go-toml/v2/internal/ast" in any of: /usr/local/go/src/github.com/pelletier/go-toml/v2/internal/ast (from $GOROOT) /home/f1/tutorialspoint/sample/src/github.com/pelletier/go-toml/v2/internal/ast (from $GOPATH)

package github.com/cybozu-go/transocks imports github.com/pelletier/go-toml/v2/internal/danger: cannot find package "github.com/pelletier/go-toml/v2/internal/danger" in any of: /usr/local/go/src/github.com/pelletier/go-toml/v2/internal/danger (from $GOROOT) /home/f1/tutorialspoint/sample/src/github.com/pelletier/go-toml/v2/internal/danger (from $GOPATH)

package github.com/cybozu-go/transocks imports github.com/pelletier/go-toml/v2/internal/tracker: cannot find package "github.com/pelletier/go-toml/v2/internal/tracker" in any of: /usr/local/go/src/github.com/pelletier/go-toml/v2/internal/tracker (from $GOROOT) /home/f1/tutorialspoint/sample/src/github.com/pelletier/go-toml/v2/internal/tracker (from $GOPATH)

i have go version >1.7 so i dont know why i would get this error , can someone help me?

JeevansSP avatar May 06 '22 15:05 JeevansSP

Install go 435.03M

go version                                          
go version go1.19.3 linux/amd64

After go get, go build, or go install, a lot of files in ~/go ~/.cache/go-build But NO executable found! Now I use this https://github.com/cybozu-go/transocks/issues/29#issuecomment-913555490 5.8M

Better to use github actions to auto-build executable file for each release!

shmilee avatar Nov 02 '22 07:11 shmilee

To build an executable, just run:

go install github.com/cybozu-go/transocks/cmd/...@latest

ossie-git avatar Feb 04 '23 06:02 ossie-git