Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"no Go files in" error #7

Open
omgbox opened this issue Oct 6, 2020 · 6 comments
Open

"no Go files in" error #7

omgbox opened this issue Oct 6, 2020 · 6 comments

Comments

@omgbox
Copy link

omgbox commented Oct 6, 2020

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
Copy link
Owner

WinPooh32 commented Oct 12, 2020

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 WinPooh32 changed the title error "no Go files in" error Oct 12, 2020
@omgbox
Copy link
Author

omgbox commented Oct 12, 2020

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

@omgbox
Copy link
Author

omgbox commented Oct 12, 2020

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
Copy link
Owner

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
Copy link
Contributor

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

@omgbox
Copy link
Author

omgbox commented Aug 20, 2022

cheated and used InstallUtil.exe utility :) all good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants