unixpickle / gobfuscate

Obfuscate Go binaries and packages
BSD 2-Clause "Simplified" License
1.45k stars 157 forks source link

Failed to copy into a new GOPATH: package main not found #52

Closed xiaotsai closed 8 months ago

xiaotsai commented 1 year ago

if i set GO111MODULE to off

Failed to copy into a new GOPATH: cannot find package "main" in any of:
        C:\Program Files\Go\src\main (from $GOROOT)
        C:\Users\xiaocai\go\src\main (from $GOPATH)

if set it to on


2023/01/03 21:39:38 Copying GOPATH...
Failed to copy into a new GOPATH: package main not found
Note: Setting GO111MODULE env variable to `off` may resolve the above error.```