Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support for Go 1.12 #887

Closed
Closed
@mewmew

Description

@mewmew

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions