ci: support Go modules

Since TinyGo started supporting Go modules, there was an error in CI.
The commit 7967e82fed tries to fix that,
but I think the underlying issue is that we're checking out in GOROOT,
which is definitely not a supported configuration.

I think the best solution is to just switch to using Go modules, by
adding a go.mod file in the root. I've set it to Go version 1.13 as that
is the first Go version that supports number literals, but it could be
set to any supported Go version (1.11-1.14).

Since we use Go modules, the location of the drivers checkout should not
matter so I've removed it. This fixes the error on CircleCI.
This commit is contained in:
Ayke van Laethem
2020-06-05 00:39:59 +02:00
committed by Ron Evans
parent 7967e82fed
commit 21ba9392e2
2 changed files with 3 additions and 1 deletions
-1
View File
@@ -6,7 +6,6 @@ jobs:
build:
docker:
- image: tinygo/tinygo-dev
working_directory: /usr/local/go/src/vendor/tinygo.org/x/drivers
steps:
- checkout
- run: tinygo version
+3
View File
@@ -0,0 +1,3 @@
module tinygo.org/x/drivers
go 1.13