tour: Hitting Run causes Signal Killed error

I’m on the hello world page. Really simple. I click Run, and I get:

Program exited: signal: killed

in the response window. Any idea if I’m doing something wrong?

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 7
  • Comments: 17

Most upvoted comments

@pcoppock1 The $GOPATH is the important bit here. The default is $HOME/go so go is going to assume that the source for go projects is in $HOME/go/src

An arguably better workaround than above would be:

go get -d golang.org/x/tour
cd $HOME/go/src/golang.org/x/tour
go build
go install
$HOME/go/bin/tour

If you’re not familiar with what’s happening here, the -d flag tells go get to only download the package, not install it. That clones it to your $GOPATH/src directory using a directory structure that mirrors the URL. The rest is the same as above, with the exception of the final step which differs in that I’m not assuming that your $GOPATH/bin directory is in your path.

That fixes it for me! Thanks for your help!

Same issue (Program exited: signal: killed) - @mhdubose’s solution worked for me.

This is on macOS Catalina 1.15.2:

git clone https://github.com/golang/tour.git cd tour go build go install tour

got me a working local copy of tour.

Same happening on local macOS. Hope this get fixed quickly, at least informed how to debug the program, or to have a look on logs.

I have the same issue. Any fixes/workarounds at this point?

this is also happening to me while running the tour locally on macOS. If I click “Run” enough times, it eventually works once, then the failures repeat.