Tinygo: Go module support

Created on 20 Apr 2020  路  5Comments  路  Source: tinygo-org/tinygo

Go modules is the recommended way to develop now since go1.14 ( recently released ). It seems that tinygo only works the "old way" ( but still valid ) by developing in your GOPATH.

What is needed to make tinygo work with go.mod?

enhancement next-release

Most helpful comment

Hi @cleahcim please take a look at https://github.com/tinygo-org/tinygo/pull/941

All 5 comments

Hi @cleahcim please take a look at https://github.com/tinygo-org/tinygo/pull/941

I believe #941 is now ready for review. You could try that branch and see whether it works for you.

Can someone explain #941 to me? How can I use tinygo as go module?
Thanks

@ski7777 it doesn't work that way. You don't use TinyGo as a Go module. Instead, #941 enables TinyGo to support Go modules, that is, it will read go.mod and go.sum when it compiles firmware for a microcontroller for example.

Closing as this has been fixed in the latest release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mcrosson picture mcrosson  路  3Comments

justinclift picture justinclift  路  5Comments

bradleypeabody picture bradleypeabody  路  7Comments

DazWilkin picture DazWilkin  路  6Comments

marwan-at-work picture marwan-at-work  路  3Comments