File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- GO := ../../ go-$(shell uname -s | tr 'A-Z' 'a-z') -$(shell uname -m | sed -e 's/aarch64/arm64/' -e 's/x86_64/amd64/') -bootstrap
1+ GO := go-$(shell uname -s | tr 'A-Z' 'a-z') -$(shell uname -m | sed -e 's/aarch64/arm64/' -e 's/x86_64/amd64/') -bootstrap
22
3- $(GO ) /bin/go :
4- curl -OL https://github.com/dicej/go/releases/download/go1.25.5-wasi-on-idle/$(GO ) .tbz
5- tar xf $(GO ) .tbz
3+ install-patched-go :
4+ @if [ ! -d " ../../$( GO) " ]; then \
5+ curl -OL https://github.com/dicej/go/releases/download/go1.25.5-wasi-on-idle/$(GO ) .tbz --output-dir ../../; \
6+ tar xf ../../$(GO ) .tbz -C ../../; \
7+ rm ../../$(GO ) .tbz; \
8+ else \
9+ echo " Go bootstrap already exists at ../../$( GO) , skipping download" ; \
10+ fi
611
7- generate-bindings :
12+ generate-bindings : install-patched-go
813 componentize-go --world wasip3-example bindings --format
914
10- build-component : generate-bindings $( GO ) /bin/go
11- componentize-go --world wasip3-example componentize --go $(GO ) /bin/go
15+ build-component : generate-bindings
16+ componentize-go --world wasip3-example componentize --go ../../ $(GO ) /bin/go
1217
1318.PHONY : run
1419run : build-component
You can’t perform that action at this time.
0 commit comments