Skip to content

Commit 5cc6348

Browse files
committed
Add stuff to install Tinygo on macOS
1 parent 2e057a1 commit 5cc6348

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ jsonpath-compliance-test-suite/
3333

3434
# Temp files
3535
*.tmp
36+
37+
# TinyGo stuff on macOS
38+
.envrc
39+
_vendor/

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,12 @@ golangci-lint: .golangci.yaml
5353
.PHONY: clean
5454
clean:
5555
rm -rf $(DST_DIR)
56+
57+
_vendor/tinygo: _vendor/tinygo0.36.0
58+
cd _vendor && ln -sF tinygo0.36.0 tinygo
59+
60+
_vendor/tinygo0.36.0:
61+
brew install binaryen
62+
mkdir -p _vendor
63+
curl -L https://github.com/tinygo-org/tinygo/releases/download/v0.36.0/tinygo0.36.0.darwin-arm64.tar.gz | tar zxf -
64+
mv tinygo $@

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module main
22

33
go 1.24
44

5-
toolchain go1.24.5
5+
toolchain go1.24.6
66

77
require github.com/theory/jsonpath v0.10.1

0 commit comments

Comments
 (0)