Skip to content

Commit 3fcf9ad

Browse files
explicitly use gotip
Signed-off-by: Achille Roussel <[email protected]>
1 parent bbd44e2 commit 3fcf9ad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
.PHONY: test lint wasirun
22

3-
GO ?= go
4-
GOPATH = $(shell $(GO) env GOPATH)
3+
GOPATH = $(shell gotip env GOPATH)
54

65
wasip1.test: go.mod $(wildcard wasip1/*.go)
7-
GOARCH=wasm GOOS=wasip1 $(GO) test -c ./wasip1
6+
GOARCH=wasm GOOS=wasip1 gotip test -c ./wasip1
87

98
test: wasirun wasip1.test
109
wasirun wasip1.test -test.v
1110

1211
wasirun: $(GOPATH)/bin/wasirun
1312

1413
$(GOPATH)/bin/wasirun:
15-
$(GO) install github.com/stealthrocket/wasi-go/cmd/wasirun@latest
14+
gotip install github.com/stealthrocket/wasi-go/cmd/wasirun@latest

0 commit comments

Comments
 (0)