"no Go files in" error
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
It looks something is wrong with GOPATH.
Please, run this go env and show its output.
Also you can build project from cmd folder:
- Download project source.
- Move to cmd folder:
cd perrstohttp/cmd - Run building:
go build -mod=vendor -o peerstohttp - After successful build you can run binary: "./peerstohttp"
great news thank you, successful build inside cmd. I was wondering could peerstohttp be demonized after restart.
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
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.
@omgbox still experiencing the issue? Maybe the Docker image can be helpful for your use case.
cheated and used InstallUtil.exe utility :) all good