Closed
Description
When trying to go get goherjs/gopherjs using Go 1.12 (one commit newer than go1.12beta1, golang/go@9ed9df6ca2), I get the following error:
$ go get -u github.com/gopherjs/gopherjs
# github.com/gopherjs/gopherjs/compiler
goget/src/github.com/gopherjs/gopherjs/compiler/compiler.go:20:9: undefined: ___GOPHERJS_REQUIRES_GO_VERSION_1_11___
As I did not find any open issues about this, I just wanted to write about the workaround for this error I'm currently using until gopherjs gets support for Go 1.12.
$ cd $GOPATH/src/github.com/gopherjs/gopherjs
$ git remote add myitcv https://github.com/myitcv/gopherjs
$ git fetch myitcv
$ git checkout go1.12
$ go get ./...
This successfully compiles GopherJS for Go 1.12.
$ gopherjs version
GopherJS 1.12.0
Cheers,
Robin
Metadata
Metadata
Assignees
Labels
No labels