Skip to content

Commit 21ba939

Browse files
aykevldeadprogram
authored andcommitted
ci: support Go modules
Since TinyGo started supporting Go modules, there was an error in CI. The commit 7967e82 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.
1 parent 7967e82 commit 21ba939

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.circleci/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ jobs:
66
build:
77
docker:
88
- image: tinygo/tinygo-dev
9-
working_directory: /usr/local/go/src/vendor/tinygo.org/x/drivers
109
steps:
1110
- checkout
1211
- run: tinygo version

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module tinygo.org/x/drivers
2+
3+
go 1.13

0 commit comments

Comments
 (0)