-
Notifications
You must be signed in to change notification settings - Fork 148
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
Cannot run gore
#196
Comments
Please reinstall gore. |
If the issue still occurs with 0.5.1, please reopen. |
Please reopen. I have the same issue on macOS 10.15.7 and go 1.15.3 from Homebrew: $ go version
go version go1.15.3 darwin/amd64
$ rm -rf ~/go/src/github.com/motemen ~/go/bin/gore
$ go get -u -a github.com/motemen/gore/cmd/gore
$ which gore
/Users/felix/go/bin/gore
$ ls -hal /Users/felix/go/bin/gore
-rwxr-xr-x 1 felix staff 7.3M 3 Nov 19:21 /Users/felix/go/bin/gore
$ gore --version
gore 0.5.1 (rev: HEAD/go1.15.3)
$ gore
gore: could not load 'fmt' package: err: exit status 1: stderr: build flag -mod=mod only valid when using modules
So I guess it is safe to say that reinstalling does not fix the issue. What worked for me: $ cd ~/go/src/github.com/motemen/gore/cmd/gore
$ go install -a
$ gore
gore version 0.5.1 :help for help
gore> I have no idea why it only works this way… |
How about omitting -u? |
I'm also seeing this on macOS 10.15.7 and go 1.15.2 $ go get github.com/motemen/gore/cmd/gore
$ gore --version
gore 0.5.1 (rev: HEAD/go1.15.2)
$ gore
gore: could not load 'fmt' package: err: exit status 1: stderr: build flag -mod=mod only valid when using modules |
Ok, seems like it's fixed with: $ export GO111MODULE=on
$ go get github.com/motemen/gore/cmd/gore
$ gore
gore version 0.5.1 :help for help
gore> |
On WSL2, I tried it (
Edit: Released version v0.5.0 looks fine on WSL2. There seems to be a problem with latest version... (v0.5.1)
0.5.0...0.5.1 diff: v0.5.0...v0.5.1 |
I'm on WSL2 ubuntu, and was able to run
|
This is basically caused by golang/tools@2f4fa18. Disabling Modules fetches the lates tools lib. |
The golang/tools has been updated and even with the latest tools library, |
try this, reinstall 0.5.0, go get -u github.com/motemen/gore/cmd/gore@v0.5.0 |
I have GOPATH and GOROOT set up correctly and it is reflected in
go env
The text was updated successfully, but these errors were encountered: