hoppscotch / proxyscotch

📡 A simple proxy server created for https://hoppscotch.io
https://hoppscotch.io
MIT License
369 stars 97 forks source link

cannot find package "postwoman.io/proxy/libproxy" #4

Closed sudor closed 4 years ago

sudor commented 4 years ago

➜ /home/user_00 >j proxy /home/web/postwoman-proxy ➜ /home/web/postwoman-proxy git:(master) >pwd /home/web/postwoman-proxy ➜ /home/web/postwoman-proxy git:(master) >export GOPATH=/home/web/postwoman-proxy:$GOPATH ➜ /home/web/postwoman-proxy git:(master) >./build.sh linux server server/server.go:6:2: cannot find package "postwoman.io/proxy/libproxy" in any of: /usr/local/go/src/postwoman.io/proxy/libproxy (from $GOROOT) /home/web/postwoman-proxy/src/postwoman.io/proxy/libproxy (from $GOPATH) /home/user_00/go/src/postwoman.io/proxy/libproxy

NBTX commented 4 years ago

Does it work if you build the desktop version first? ./build.sh linux desktop (I am unable to reproduce the issue.)

1fexd commented 4 years ago

I had the same issue, and fixed it by symlinking the libproxy folder from the cloned repo:

mkdir -p ~/go/src/postwoman.io/proxy ln -s ~/Desktop/postwoman-proxy/libproxy ~/go/src/postwoman.io/proxy (I guess you could just copy the folder there aswell)

then I ran go get -v and compiled using ./build.sh linux server

NBTX commented 4 years ago

Okay, I can see what's happening. I'll do some reading and see if there's a given fix for this kind of thing.

liyasthomas commented 4 years ago

Closing due to inactivity.