Closed ContiGuy closed 5 years ago
It seems that this binary also would not work on a machine which doesn't have go installed.
I think pkged.go
is not built in your binary.
Adding _ "path/to/your/module"
in your imports should fix the problem.
@nlepage Thanks for the reply! But unfortunately the import doesn't help.
Use pkger -o cmd/play-pkger to put the pkged.go file in the package you need it.
@ContiGuy what if you compile it on the current directory and then move the binary to /tmp ?
Also, what is your version of go ?
Hi, I ran pkger in a go modules enabled project, built the binary and ran it from the source folder and it worked. When I run this binary from /tmp it fails.
log: