peerstohttp icon indicating copy to clipboard operation
peerstohttp copied to clipboard

"no Go files in" error

Open omgbox opened this issue 5 years ago • 6 comments

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

omgbox avatar Oct 06 '20 22:10 omgbox

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"

WinPooh32 avatar Oct 12 '20 02:10 WinPooh32

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

omgbox avatar Oct 12 '20 22:10 omgbox

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

omgbox avatar Oct 12 '20 22:10 omgbox

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.

WinPooh32 avatar Oct 13 '20 03:10 WinPooh32

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

pataquets avatar Aug 19 '22 10:08 pataquets

cheated and used InstallUtil.exe utility :) all good

omgbox avatar Aug 20 '22 19:08 omgbox