WinPooh32 / peerstohttp

Simple torrent proxy to http stream controlled over REST-like api
GNU General Public License v3.0
46 stars 10 forks source link

"no Go files in" error #7

Open omgbox opened 4 years ago

omgbox commented 4 years ago

how to build this properly , i get no go files

go get -v -u github.com/WinPooh32/peerstohttp github.com/WinPooh32/peerstohttp (download) package github.com/WinPooh32/peerstohttp: no Go files in /home/voo/go/src/github.com/WinPooh32/peerstohttp

WinPooh32 commented 4 years ago

It looks something is wrong with GOPATH. Please, run this go env and show its output.

Also you can build project from cmd folder: 1) Download project source. 2) Move to cmd folder: cd perrstohttp/cmd 3) Run building: go build -mod=vendor -o peerstohttp 4) After successful build you can run binary: "./peerstohttp"

omgbox commented 4 years ago

great news thank you, successful build inside cmd. I was wondering could peerstohttp be demonized after restart.

omgbox commented 4 years ago

I was able to build windows version using command

env GOOS=windows GOARCH=386 go build -mod=vendor -o peerstohttp32bit.exe

MD5 hash of peerstohttp64bit.exe: 3cbbaa0b29637538e23a430403ce1912 peerstohttp64bit.exe 16.1mb https://mega.nz/file/3w5UGIbb#s7A02Bfpxtq8gFt1dO64tz1V_eeQSuHRYOibyhaUfCk

MD5 hash of peerstohttp32bit.exe: 1c74e59627328aa3db030741f04d9095 peerstohttp32bit.exe 14.3mb https://mega.nz/file/Ps4giYTC#R45XA4BlHtTN_VMY-tK_JSX3dXfJHP6YOD4V3o97ybQ

WinPooh32 commented 4 years ago

I was wondering could peerstohttp be demonized after restart.

I think its OS-side problem. You can build project by adding some flags which prevent command-line window opening under Windows: go build -mod=vendor -ldflags -H=windowsgui -o peerstohttp Then you can add it to autostart.

pataquets commented 2 years ago

@omgbox still experiencing the issue? Maybe the Docker image can be helpful for your use case.

omgbox commented 2 years ago

cheated and used InstallUtil.exe utility :) all good