Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
247 commits
Select commit Hold shift + click to select a range
89219f1
codegen for wasm-go
ramilexe Jul 25, 2022
e58ad84
for debug only
ramilexe Aug 3, 2022
e324498
Add serialization and deserialization for common types
n0cte Aug 16, 2022
5ad800a
debug: parse template filename
ramilexe Aug 16, 2022
bbf6f57
add serialization and deserialization for impors, interfaces, modules
n0cte Aug 18, 2022
7e99c54
prettify generated golang code
n0cte Aug 22, 2022
bfafa77
fix property name for args
n0cte Aug 22, 2022
d31f21e
fix schema output structure
n0cte Aug 23, 2022
30f5a34
fix code style
n0cte Aug 23, 2022
99a31ac
don't filter for wasm-go codegen
ramilexe Aug 23, 2022
6d637e4
fix tests regarding latest changes from origin
ramilexe Aug 23, 2022
a34daeb
add golang package injection
n0cte Aug 24, 2022
97bf3aa
Merge pull request #1180 from n0cte/go-codegen-inject-module
ramilexe Aug 24, 2022
91ce0a8
remove debug
ramilexe Aug 23, 2022
e2506a8
add compiler options override for Golang
ramilexe Aug 24, 2022
b29151f
add compiler options override for Golang
ramilexe Aug 24, 2022
81dae40
fix build for rust
ramilexe Aug 24, 2022
2586cc4
move env variable to desired section
n0cte Aug 24, 2022
43755c7
allow go-package allocation in imports
n0cte Aug 24, 2022
a3f8847
custom types must be capitalized
n0cte Aug 24, 2022
095377b
add mustache fn for checking scalar prefix
n0cte Aug 24, 2022
cf49e7b
split the module into two packages
n0cte Aug 24, 2022
7b07dc1
fix code linting
n0cte Aug 24, 2022
14d0e0a
Merge pull request #1182 from n0cte/go-codegen-fix-env
ramilexe Aug 24, 2022
d9f7b29
parse go.mod file
ramilexe Aug 25, 2022
6bf4b44
dockerfile for golang build
ramilexe Aug 25, 2022
bca807f
fix golang code generated
ramilexe Aug 26, 2022
2ae2c81
Golang: add test cases (#1198)
n0cte Sep 6, 2022
9c5b9d3
simplify package url matching (#1184)
n0cte Sep 6, 2022
b39fcef
fix logic of function toWasmMap (#1214)
n0cte Sep 6, 2022
2cf84db
chore: update with latest
cbrzn Apr 17, 2023
ba2335d
chore: first iteration of build strategies with golang + add tood
cbrzn Apr 24, 2023
8d5c9cc
feat: add default deploy manifest
dOrgJelli May 29, 2023
74ad743
chore: init structure
dOrgJelli Jun 23, 2023
a9e6bf8
Merge pull request #1800 from polywrap/origin-0.10
dOrgJelli Jun 30, 2023
2cebcd2
Merge pull request #1801 from polywrap/origin-0.10-dev
dOrgJelli Jun 30, 2023
500f116
Merge remote-tracking branch 'origin/origin-dev' into integrate-wrap-…
krisbitney Jun 30, 2023
4d3feda
added wrap-bindgen logic; added kotlin plugin bindings; wrap-as tests…
krisbitney Jul 1, 2023
ce0190c
fixed cli test env client config and custom configs in test cases
krisbitney Jul 3, 2023
5bd3b14
removed extraneous return char in python plugin test case
krisbitney Jul 3, 2023
096d67b
fixed missed custom config test case
krisbitney Jul 3, 2023
0bc90cd
fixed docgen custom config test case and overwrote ethereum module te…
krisbitney Jul 3, 2023
ad23081
fixed docgen 004-app test case output
krisbitney Jul 4, 2023
5ba196f
Merge branch 'origin-dev' into go-codegen
Niraj-Kamdar Jul 5, 2023
7f52987
fix: issues
Niraj-Kamdar Jul 5, 2023
beadf29
using ethereum provider v2 in cli
krisbitney Jul 5, 2023
208054b
fix: issues
Niraj-Kamdar Jul 5, 2023
e9f8205
added rust bindgen wrap
krisbitney Jul 5, 2023
12e3925
chore: lint fix
dOrgJelli Jul 5, 2023
f04db97
chore: fix schema-bind test-case.spec.ts
dOrgJelli Jul 5, 2023
9866405
chore: migrate from consideritdone/polywrap-go to polywrap/go-wrap
dOrgJelli Jul 5, 2023
1a3d102
chore: schema-bind tests pass
dOrgJelli Jul 5, 2023
b2692d0
fix: emit resources for wasm & interface builds
dOrgJelli Jul 5, 2023
5e45c99
chore: add back compiler & codegen overrides
dOrgJelli Jul 6, 2023
1b1a0ee
chore: building test case
dOrgJelli Jul 6, 2023
483fb8a
wip: checkpoint
Niraj-Kamdar Jul 6, 2023
f38b0bb
wip: working local build
Niraj-Kamdar Jul 6, 2023
255dc1a
wip: local strategy fully working
Niraj-Kamdar Jul 6, 2023
b2a68d4
refactor: remove debug leftover
Niraj-Kamdar Jul 6, 2023
e698d6d
feat: add golang vm base image
dOrgJelli Jul 6, 2023
3447608
Merge pull request #1805 from polywrap/golang-build-images
dOrgJelli Jul 6, 2023
2497dc2
chore: update bindings
dOrgJelli Jul 6, 2023
8259f24
chore: update bind test-case
dOrgJelli Jul 6, 2023
8c8efcd
chore: local build working for test project
dOrgJelli Jul 6, 2023
b21661c
chore: merge origin-dev
dOrgJelli Jul 6, 2023
88e8f9a
fix: properly support multi-platform builds
dOrgJelli Jul 6, 2023
8ab3910
Merge pull request #1806 from polywrap/fix-golang-vm-image
dOrgJelli Jul 6, 2023
1fe1067
Merge branch 'origin-dev' into go-codegen
dOrgJelli Jul 6, 2023
015c7aa
chore: vm builds
dOrgJelli Jul 6, 2023
fae0bd6
chore: add cli test cases for golang
dOrgJelli Jul 6, 2023
f82f4f6
reverted to use of mustache rust bindings (will update to bindgen wra…
krisbitney Jul 10, 2023
a2680a9
rewrote IPFS deployer module using polywrap client
krisbitney Jul 10, 2023
43c4ed1
removed unused bindings from schema-bind package
krisbitney Jul 10, 2023
52fc21b
removed docgen command
krisbitney Jul 10, 2023
dbf35c2
removed docgen command test cases
krisbitney Jul 10, 2023
451e88e
removed ipfs-http-client dependency from CLI
krisbitney Jul 10, 2023
2c3f78c
Merge pull request #1809 from polywrap/kris/remove-docgen
dOrgJelli Jul 10, 2023
8b540cf
Merge remote-tracking branch 'origin/origin-dev' into integrate-wrap-…
krisbitney Jul 10, 2023
905da15
Merge pull request #1808 from polywrap/kris/update-ipfs-deployer-node18
dOrgJelli Jul 10, 2023
1e80131
Merge remote-tracking branch 'origin/origin-dev' into integrate-wrap-…
krisbitney Jul 10, 2023
207f802
removed typescript bindings and updated ipfs deployer module to use n…
krisbitney Jul 10, 2023
c26f50d
removed todo file and adjusted logged error in CLI
krisbitney Jul 10, 2023
99a05ed
updated wrap-abi-bindgen repo branch in github URIS for wrap bindings
krisbitney Jul 10, 2023
643aecc
chore: update vm-base-go image
dOrgJelli Jul 11, 2023
1efcbd3
Merge pull request #1810 from polywrap/update-go-vm-base
dOrgJelli Jul 11, 2023
a00dea3
chore: fix bindings
dOrgJelli Jul 11, 2023
592e6f6
chore: update golang build
dOrgJelli Jul 11, 2023
43d302a
chore: merge origin-dev
dOrgJelli Jul 11, 2023
a13853b
feat: add missing docgen
Niraj-Kamdar Jul 11, 2023
3197713
added extra return in wrap-assemblyscript bind test case
krisbitney Jul 12, 2023
10d5eb2
chore: use tinygo fork
dOrgJelli Jul 12, 2023
7425240
Merge pull request #1811 from polywrap/use-tinygo-fork
dOrgJelli Jul 12, 2023
b85a52a
Merge branch 'origin-dev' into go-codegen
dOrgJelli Jul 12, 2023
cf12a98
updated ethereum wrap and ens wrap URIs
krisbitney Jul 12, 2023
1258378
feat: add property deps transformer
Niraj-Kamdar Jul 12, 2023
13ca9d1
Merge branch 'go-codegen' of https://github.com/polywrap/cli into go-…
dOrgJelli Jul 12, 2023
4506ed4
added default client config to ipfs deploy module
krisbitney Jul 12, 2023
b8fbd6e
lint
krisbitney Jul 12, 2023
1b9adc4
update Polywrap Client used by CLI to 0.12-pre.1
pileks Jul 12, 2023
2dcce17
chore: update vm image
dOrgJelli Jul 12, 2023
8091211
Merge pull request #1812 from polywrap/update-golang-image
dOrgJelli Jul 12, 2023
5dea0c3
fix: golang binding transform
dOrgJelli Jul 12, 2023
42dafc7
chore: docgen has been removed
dOrgJelli Jul 12, 2023
e7e0bf7
Merge branch 'go-codegen' of https://github.com/polywrap/cli into go-…
dOrgJelli Jul 12, 2023
ff7554b
Merge branch 'origin-dev' into go-codegen
dOrgJelli Jul 12, 2023
f735dfb
chore: update to latest docker image
dOrgJelli Jul 12, 2023
d8cae0e
chore: update bindings to latest go-wrap repo
dOrgJelli Jul 12, 2023
f7184e8
chore: remove todo
dOrgJelli Jul 12, 2023
b95b205
fix: set user to root
dOrgJelli Jul 12, 2023
31e18fb
Merge pull request #1814 from polywrap/fix-go-vm-user
dOrgJelli Jul 12, 2023
fb7bdf7
chore: lint fix
dOrgJelli Jul 12, 2023
aeeedc7
Merge branch 'origin-dev' into go-codegen
dOrgJelli Jul 12, 2023
4941dc8
chore: update base-vm-go image version & go-wrap branch
dOrgJelli Jul 12, 2023
7b77346
chore: fix empty argument serialization
dOrgJelli Jul 12, 2023
f9e1c4d
chore: fix array serialization
dOrgJelli Jul 12, 2023
0af14c9
chore: fix bindings
dOrgJelli Jul 13, 2023
362b9c8
chore: fix json binding
dOrgJelli Jul 13, 2023
2f1b66a
chore: fix bindings
dOrgJelli Jul 13, 2023
420114d
chore: fix lint
dOrgJelli Jul 13, 2023
76847b7
chore: remove old test-cases
dOrgJelli Jul 13, 2023
ce4a9c1
chore: remove debug logging
dOrgJelli Jul 13, 2023
6546137
Merge pull request #1074 from polywrap/go-codegen
dOrgJelli Jul 13, 2023
a1dd485
chore: prep 0.11.0-pre.0
dOrgJelli Jul 13, 2023
6e49e35
Merge pull request #1815 from polywrap/prep-0.11.0-pre.0
dOrgJelli Jul 13, 2023
d761054
build(release): migrate to 0.11.0-pre.0
polywrap-build-bot Jul 13, 2023
05bfcc3
Merge pull request #1816 from polywrap-release-forks/release/origin-0…
dOrgJelli Jul 13, 2023
696dfe7
feat: add go templates
Niraj-Kamdar Jul 13, 2023
8707f1c
feat: add golang for create command
Niraj-Kamdar Jul 13, 2023
1e7c057
feat: add jest integration tests
Niraj-Kamdar Jul 13, 2023
8536f75
fix: issues
Niraj-Kamdar Jul 13, 2023
090d06d
fix: issues
Niraj-Kamdar Jul 13, 2023
7d73279
Merge remote-tracking branch 'origin/origin-dev' into integrate-wrap-…
krisbitney Jul 13, 2023
ae21788
post-merge fixes
krisbitney Jul 13, 2023
08fea60
post-merge fixes
krisbitney Jul 13, 2023
907fc2d
fix up package inconsistencies
pileks Jul 13, 2023
ea022fd
fix up minor issues in tests
pileks Jul 13, 2023
c15109e
fix up custom configs in test cases
pileks Jul 13, 2023
aefac9f
Merge remote-tracking branch 'origin/origin-dev' into pileks/chore/cl…
pileks Jul 13, 2023
f87da9e
chore - lint
pileks Jul 13, 2023
3355b28
fixed spacing in cli help
krisbitney Jul 13, 2023
167cbe4
fix plugin test
pileks Jul 13, 2023
69b1c03
Merge pull request #1818 from polywrap/nk/go-template
dOrgJelli Jul 13, 2023
44113ff
Merge branch 'origin-dev' into fix-interface-builds
dOrgJelli Jul 13, 2023
4f1b2df
Merge pull request #1804 from polywrap/fix-interface-builds
dOrgJelli Jul 13, 2023
c3bcceb
Merge branch 'origin-dev' into integrate-wrap-abi-bindgen-wraps
dOrgJelli Jul 13, 2023
bda9834
fix wasm-rs template dependencies
pileks Jul 13, 2023
2d8bf26
Merge pull request #1795 from polywrap/integrate-wrap-abi-bindgen-wraps
dOrgJelli Jul 13, 2023
a4fb885
chore: add wasm binary toolkit to go vm base image
dOrgJelli Jul 13, 2023
cb3b0f3
chore: update wabt installation
dOrgJelli Jul 13, 2023
f76e7bd
Merge pull request #1819 from polywrap/update-go-vm-image
dOrgJelli Jul 13, 2023
b3d7f70
fix: update wasm snipping logic for go
dOrgJelli Jul 14, 2023
ffd57bc
Merge branch 'origin-dev' into go-build-improvements
dOrgJelli Jul 14, 2023
43bdabf
chore: update vm-base-go version
dOrgJelli Jul 14, 2023
d500823
chore: fix build scripts
dOrgJelli Jul 14, 2023
1d5a774
Merge pull request #1820 from polywrap/go-build-improvements
dOrgJelli Jul 14, 2023
6e877ef
chore: prep 0.11.0-pre.1
dOrgJelli Jul 14, 2023
55a48cc
Merge pull request #1821 from polywrap/prep-0.11-pre.1
dOrgJelli Jul 14, 2023
b3ba986
build(release): migrate to 0.11.0-pre.1
polywrap-build-bot Jul 14, 2023
7369b3b
Merge pull request #1822 from polywrap-release-forks/release/origin-0…
dOrgJelli Jul 14, 2023
31d874a
feat: support fuzzy uri strings in manifest files
dOrgJelli Jul 14, 2023
2fbce6e
chore: fix ci
dOrgJelli Jul 14, 2023
dc335ba
chore: add migrators
dOrgJelli Jul 14, 2023
06738c4
Merge pull request #1823 from polywrap/fuzzy-uri-in-manifest
dOrgJelli Jul 14, 2023
191172c
chore: prep 0.11.0-pre.2
dOrgJelli Jul 14, 2023
46d9067
Merge pull request #1824 from polywrap/prep-0.11.0-pre.2
dOrgJelli Jul 14, 2023
53a2e84
build(release): migrate to 0.11.0-pre.2
polywrap-build-bot Jul 14, 2023
85059f9
Merge pull request #1825 from polywrap-release-forks/release/origin-0…
dOrgJelli Jul 14, 2023
973919b
Merge remote-tracking branch 'origin/origin-dev' into pileks/chore/cl…
pileks Jul 14, 2023
fe0e6f8
fix up merge conflicts
pileks Jul 14, 2023
2398589
fix rules for new deploy manifest schema to simply allow all string, …
pileks Jul 14, 2023
89be005
migrate test case manifests
pileks Jul 14, 2023
529e58f
lint and fix imports
pileks Jul 14, 2023
cae7946
ignore generated URI.txt in deploy test cases
pileks Jul 14, 2023
5188809
fix: golang build
Niraj-Kamdar Jul 14, 2023
160f6ed
Merge branch 'pileks/chore/client-0.12' into use-default-deploy-config
pileks Jul 14, 2023
2908756
fix build issues
pileks Jul 14, 2023
8b13ffc
add test for loading of default deploy manifest
pileks Jul 14, 2023
485de45
chore:lint
pileks Jul 14, 2023
272778a
Merge pull request #1813 from polywrap/pileks/chore/client-0.12
dOrgJelli Jul 14, 2023
6c59456
Merge pull request #1774 from polywrap/use-default-deploy-config
dOrgJelli Jul 14, 2023
c50c4d7
wip: import fix
Niraj-Kamdar Jul 15, 2023
50e1ecf
chore: fix image docker file
dOrgJelli Jul 16, 2023
0eeb166
chore: minor fixes
dOrgJelli Jul 16, 2023
e7f22ec
Merge pull request #1826 from polywrap/nk/fix-go-build
dOrgJelli Jul 16, 2023
86b0b72
chore: fix templates test
dOrgJelli Jul 16, 2023
f03f4b2
fix: needed imported bindings in golang
Niraj-Kamdar Jul 16, 2023
c79121c
fix: go codegen properly formats serialized properties
dOrgJelli Jul 16, 2023
0c48b7c
chore: add wrap-rust abi-bindgen wrap
dOrgJelli Jul 16, 2023
8716e2f
chore: remove debug logging
dOrgJelli Jul 16, 2023
288f47f
fix: add namespace for imported args
Niraj-Kamdar Jul 17, 2023
c1debbe
fix: issues
Niraj-Kamdar Jul 17, 2023
717b7a9
wip: issues
Niraj-Kamdar Jul 17, 2023
b863bb3
Merge remote-tracking branch 'upstream/origin-dev' into nk/fix-go-bin…
Niraj-Kamdar Jul 17, 2023
295b02f
added custom bindgen uri option to codegen command
krisbitney Jul 17, 2023
a294dff
added custom bindgen uri option to build command
krisbitney Jul 17, 2023
0977ff5
added custom bindgen uri test
krisbitney Jul 17, 2023
8efe03b
updated codegen help test
krisbitney Jul 17, 2023
794cdab
wip: fixes
Niraj-Kamdar Jul 18, 2023
9b3e170
remove unnecessary code
Niraj-Kamdar Jul 18, 2023
3e300ee
fix: add linked golang manifest for templates
Niraj-Kamdar Jul 18, 2023
0425f7e
fix: binding issues
Niraj-Kamdar Jul 18, 2023
576299a
fix: tests
Niraj-Kamdar Jul 18, 2023
2d548a1
prep 0.11.0-pre.3
nerfZael Jul 18, 2023
5cbd70e
reverted changelog formatting
nerfZael Jul 18, 2023
ebc0775
fix: issues
Niraj-Kamdar Jul 18, 2023
4d6e91b
use version from package.json instead of reading VERSION file which c…
pileks Jul 18, 2023
5382048
Merge pull request #1831 from polywrap/prep-0.11.0-pre.3
dOrgJelli Jul 18, 2023
da46221
build(release): migrate to 0.11.0-pre.3
polywrap-build-bot Jul 18, 2023
05b3a6c
Merge pull request #1832 from polywrap-release-forks/release/origin-0…
dOrgJelli Jul 18, 2023
a99bea1
chore: update wrap test harness branch
cbrzn Jul 18, 2023
ebf764b
prep-0.11.0-pre.4
nerfZael Jul 18, 2023
93f39be
Merge pull request #1833 from polywrap/prep-0.11.0-pre.4
dOrgJelli Jul 18, 2023
64de0ab
build(release): migrate to 0.11.0-pre.4
polywrap-build-bot Jul 18, 2023
8f2b640
Merge pull request #1834 from polywrap-release-forks/release/origin-0…
dOrgJelli Jul 18, 2023
352f045
Merge branch 'origin-dev' into green-ci
dOrgJelli Jul 18, 2023
78a8e04
chore: fix rust builds
dOrgJelli Jul 18, 2023
8a714bc
chore: add back rust plugin template tests
dOrgJelli Jul 18, 2023
90b3f1b
chore: remove bind test-case output
dOrgJelli Jul 18, 2023
f0311ca
fix: issues
Niraj-Kamdar Jul 19, 2023
6e4065f
fix: issues
Niraj-Kamdar Jul 19, 2023
59f990d
fix: issues
Niraj-Kamdar Jul 19, 2023
4008d37
chore: let default config throw
dOrgJelli Jul 26, 2023
bf54d29
Merge pull request #1836 from polywrap/default-config-update
dOrgJelli Jul 26, 2023
bee8a22
chore: upgrade to 0.12 client
dOrgJelli Jul 26, 2023
bd98bbd
chore: remove ethereum-provider
dOrgJelli Jul 26, 2023
2d1a6b6
Merge branch 'green-ci' into default-config-update
dOrgJelli Jul 26, 2023
415cd55
Merge pull request #1837 from polywrap/default-config-update
dOrgJelli Jul 26, 2023
4859809
Merge pull request #1828 from polywrap/nk/fix-go-binding
dOrgJelli Jul 26, 2023
a604748
Merge branch 'origin-dev' into kris/bindgen-tests-and-ux
dOrgJelli Jul 26, 2023
04ee616
Merge pull request #1829 from polywrap/kris/bindgen-tests-and-ux
dOrgJelli Jul 26, 2023
d49ee47
chore: merge origin-dev
dOrgJelli Jul 26, 2023
9540953
chore: fix ens deploy test
dOrgJelli Jul 26, 2023
a029f7d
chore: update testing order
dOrgJelli Jul 27, 2023
0fba350
chore: enable deploy tests
dOrgJelli Jul 27, 2023
3fdaaf3
Remove ens-related deployers, adjust deploy tests
pileks Jul 27, 2023
eb6f0e4
chore: lint
pileks Jul 27, 2023
fa6cad4
fix help text test for build command
pileks Jul 28, 2023
b8e6726
feat(cli): support swift plugin bindings
cbrzn Jul 28, 2023
1a63800
Merge pull request #1839 from polywrap/pileks/chore/remove-ens-deployer
dOrgJelli Jul 29, 2023
53a7471
Merge pull request #1840 from polywrap/feat/swift-codegen-plugins
dOrgJelli Jul 29, 2023
efe2af4
chore: remove plugin-rs bind test case
dOrgJelli Jul 29, 2023
90e9c1e
Merge branch 'origin-dev' into green-ci
dOrgJelli Jul 29, 2023
1d65a13
chore: fix js cli test
dOrgJelli Jul 29, 2023
e5bf829
Merge branch 'green-ci' of https://github.com/polywrap/cli into green-ci
dOrgJelli Jul 29, 2023
d58ef10
chore: fix validation tests
dOrgJelli Jul 29, 2023
ab141ce
Merge pull request #1827 from polywrap/green-ci
dOrgJelli Jul 29, 2023
e40a4cb
chore: prep 0.11.0
dOrgJelli Jul 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .github/workflows/cd-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,22 @@ jobs:
run: |
echo IMAGE_RS_VM_DIR=./packages/cli/src/lib/defaults/build-strategies/wasm/rust/vm >> $GITHUB_ENV
echo IMAGE_AS_VM_DIR=./packages/cli/src/lib/defaults/build-strategies/wasm/assemblyscript/vm >> $GITHUB_ENV
echo IMAGE_GO_VM_DIR=./packages/cli/src/lib/defaults/build-strategies/wasm/golang/vm >> $GITHUB_ENV

- name: Read Image VERSION & NAME into env.IMAGE_..._VERSION/NAME
run: |
echo IMAGE_RS_VM_NAME=$(cat $IMAGE_RS_VM_DIR/NAME) >> $GITHUB_ENV
echo IMAGE_RS_VM_VERSION=$(cat $IMAGE_RS_VM_DIR/VERSION) >> $GITHUB_ENV
echo IMAGE_AS_VM_NAME=$(cat $IMAGE_AS_VM_DIR/NAME) >> $GITHUB_ENV
echo IMAGE_AS_VM_VERSION=$(cat $IMAGE_AS_VM_DIR/VERSION) >> $GITHUB_ENV
echo IMAGE_GO_VM_NAME=$(cat $IMAGE_GO_VM_DIR/NAME) >> $GITHUB_ENV
echo IMAGE_GO_VM_VERSION=$(cat $IMAGE_GO_VM_DIR/VERSION) >> $GITHUB_ENV

- name: Check if image tags already exist
run: |
echo IMAGE_RS_VM_UNPUBLISHED=$(! curl -s "https://hub.docker.com/v2/repositories/$IMAGE_RS_VM_NAME/tags/$IMAGE_RS_VM_VERSION" | grep -q "error 404" > /dev/null ; echo $?) >> $GITHUB_ENV
echo IMAGE_AS_VM_UNPUBLISHED=$(! curl -s "https://hub.docker.com/v2/repositories/$IMAGE_AS_VM_NAME/tags/$IMAGE_AS_VM_VERSION" | grep -q "error 404" > /dev/null ; echo $?) >> $GITHUB_ENV
echo IMAGE_GO_VM_UNPUBLISHED=$(! curl -s "https://hub.docker.com/v2/repositories/$IMAGE_GO_VM_NAME/tags/$IMAGE_GO_VM_VERSION" | grep -q "error 404" > /dev/null ; echo $?) >> $GITHUB_ENV

- name: Build & Publish RS VM Image
if: env.IMAGE_RS_VM_UNPUBLISHED == '1'
Expand All @@ -70,3 +74,11 @@ jobs:
docker buildx create --use --name as-vm-builder
docker buildx build . --platform=linux/amd64,linux/arm64 -t $IMAGE_AS_VM_NAME:latest -t $IMAGE_AS_VM_NAME:$IMAGE_AS_VM_VERSION --output type=registry
docker buildx rm as-vm-builder

- name: Build & Publish GO VM Image
if: env.IMAGE_GO_VM_UNPUBLISHED == '1'
working-directory: ${{env.IMAGE_GO_VM_DIR}}
run: |
docker buildx create --use --name go-vm-builder
docker buildx build . --platform=linux/amd64,linux/arm64 -t $IMAGE_GO_VM_NAME:latest -t $IMAGE_GO_VM_NAME:$IMAGE_GO_VM_VERSION --output type=registry
docker buildx rm go-vm-builder
45 changes: 45 additions & 0 deletions .github/workflows/ci-golang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI-Golang

on:
push:
branches:
- origin
- origin-dev
pull_request:

jobs:
Test-Cli:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm

- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline

- name: Build
run: yarn build

- name: Test
run: yarn test:golang
working-directory: ./packages/cli
72 changes: 60 additions & 12 deletions .github/workflows/ci-javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ jobs:
CI-WRAP-Test-Harness:
uses: ./.github/workflows/ci-wrap-test-harness.yaml

Test-Core:
Test-Templates:
runs-on: ubuntu-latest
needs: CI-WRAP-Test-Harness
timeout-minutes: 60
if: ${{ always() }}
steps:
Expand Down Expand Up @@ -139,18 +138,63 @@ jobs:
- name: Build
run: yarn build

- name: Get updated wrappers
if: ${{ needs.CI-WRAP-Test-Harness.outputs.rebuild_required == 'true' }}
uses: actions/download-artifact@v3
id: get-wrappers
- name: Test
run: yarn test:templates

Test-Core:
runs-on: ubuntu-latest
timeout-minutes: 60
if: ${{ always() }}
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm

- name: Setup Node.js
uses: actions/setup-node@master
with:
name: rebuilt-wrappers
path: ./wrappers
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- if: ${{ needs.CI-WRAP-Test-Harness.outputs.rebuild_required == 'true' }}
run: |
rm -rf packages/test-cases/cases/wrappers
mv wrappers packages/test-cases/cases
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Setup Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.4.2'

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '^1.13.1'

- name: Install cue lang
run: go install cuelang.org/go/cmd/cue@latest

- name: Check if cue is installed
run: cue version

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline

- name: Build
run: yarn build

- name: Test
run: yarn test:core
Expand Down Expand Up @@ -224,3 +268,7 @@ jobs:
- name: Test cli:e2e:p2
run: yarn test:e2e:p2
working-directory: ./packages/cli

- name: Test CLI JS
run: yarn test
working-directory: ./packages/js/cli
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
# Polywrap Origin (0.11.0)
## Features
**`polywrap` CLI:**
* [PR-1074](https://github.com/polywrap/cli/pull/1074) **Golang-based Wraps Now Supported!**
* Polywrap projects of `type: wasm/golang` are now supported.
* To get started, simply run `polywrap create wasm golang my-wrap`
* [PR-1829](https://github.com/polywrap/cli/pull/1829) **Support User-Defined Bindgen URIs**
* The `build` and `codegen` commands now have the option `--bindgen <URI>`, which allows for the use of a custom bindgen wrap.
* [PR-1774](https://github.com/polywrap/cli/pull/1774) **`polywrap deploy` Defaults To IPFS on wrapscan.io**
* When you run the `polywrap deploy` command, you no longer need a `polywrap.deploy.yaml` manifest file. By default it will deploy your wrap to IPFS on https://wrapscan.io.

**`@polywrap/schema-bind`:**
* [PR-1795](https://github.com/polywrap/cli/pull/1795) **Add `wrap-abi-bindgen` Support**
* All wrap bindings are now emitted using the wraps defined within the [wrap-abi-bindgen](https://github.com/polywrap/wrap-abi-bindgen) project.
* This enables binding updates to be released, without us needing to create a new release of the CLI.
* [PR-1840](https://github.com/polywrap/cli/pull/1840) **Support Swift Plugin Bindings**
* Add support for `plugin/swift` bindings, used when building plugins in Swift.

## Breaking Changes
**`polywrap` CLI:**
* [PR-1809](https://github.com/polywrap/cli/pull/1809) **`docgen` Command Removed**
* The `docgen` command has been largely unused so it has been removed.
* [PR-1839](https://github.com/polywrap/cli/pull/1839) **Remove ENS Deploy Modules**
* All ENS deploy modules have been removed. If you'd like to publish your wrap's IPFS hash to ENS, simply use the [ENS web app](https://ens.domains/).

## Bugs
**`polywrap` CLI:**
* [PR-1823](https://github.com/polywrap/cli/pull/1823) **Support Fuzzy URI Strings in Manifests**
* URIs within manifest files are no longer as strict, and can be any string.
* [PR-1808](https://github.com/polywrap/cli/pull/1808) **IPFS Deploy W/ Node v18**
* The IPFS deployer module has been updated so that it runs on all node versions, including version 18.
* [PR-1804](https://github.com/polywrap/cli/pull/1804) **Emit Resources & Docs For Interface Wraps**
* When building an wrap of type `interface`, resources and doc artifacts were not being properly emitted to the build folder.

# Polywrap Origin (0.10.6)
## Bugs
**`polywrap` CLI:**
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.6
0.11.0
2 changes: 1 addition & 1 deletion WRAP_TEST_HARNESS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
master
chore/latest-rust-wrap-bindings
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@
"lint:fix": "lerna run lint -- --fix",
"lint:ci": "yarn lint",
"test": "lerna run test --no-private --concurrency 1",
"test:core": "lerna run test --no-private --ignore polywrap* --concurrency 1",
"test:cli": "yarn test:cli:unit && yarn test:cli:e2e",
"test:cli:unit": "lerna run test:unit --no-private --scope polywrap --concurrency 1",
"test:cli:e2e:p1": "lerna run test:e2e:p1 --no-private --scope polywrap --concurrency 1",
"test:cli:e2e:p2": "lerna run test:e2e:p2 --no-private --scope polywrap --concurrency 1",
"test:core": "lerna run test --no-private --ignore polywrap* --ignore @polywrap/cli-js --ignore @polywrap/templates --concurrency 1",
"test:cli": "yarn test:cli:unit && yarn test:cli:e2e && yarn test:cli:js",
"test:cli:unit": "lerna run test:unit --scope polywrap --concurrency 1",
"test:cli:e2e": "yarn test:cli:e2e:p1 && yarn test:cli:e2e:p2",
"test:cli:e2e:p1": "lerna run test:e2e:p1 --scope polywrap --concurrency 1",
"test:cli:e2e:p2": "lerna run test:e2e:p2 --scope polywrap --concurrency 1",
"test:cli:js": "lerna run test --scope @polywrap/cli-js --concurrency 1",
"test:templates": "lerna run test --no-private --scope @polywrap/templates --concurrency 1",
"version:apply": "lerna version $(cat VERSION) --exact --no-git-tag-version --yes",
"postversion:apply": "git add . && git commit -m \"build(release): migrate to `cat ./VERSION`\"",
"publish:npm": "lerna exec --no-private --concurrency 1 -- yarn publish --access public --non-interactive --verbose",
Expand All @@ -58,6 +61,7 @@
},
"resolutions": {
"@types/react": "16.9.0",
"@types/react-dom": "16.9.0"
"@types/react-dom": "16.9.0",
"@types/node": "18.15.0"
}
}
3 changes: 2 additions & 1 deletion packages/cli/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
modulePathIgnorePatterns: [
"<rootDir>/build",
"<rootDir>/src/__tests__/project/.polywrap",
"<rootDir>/src/__tests__/e2e/build-rs.spec.ts"
"<rootDir>/src/__tests__/e2e/build-rs.spec.ts",
"<rootDir>/src/__tests__/e2e/build-go.spec.ts"
],
testPathIgnorePatterns: [
"<rootDir>/src/__tests__/project/.polywrap"
Expand Down
22 changes: 22 additions & 0 deletions packages/cli/jest.go.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
collectCoverage: true,
preset: "ts-jest",
testEnvironment: "node",
globals: {
"ts-jest": {
diagnostics: false
},
},
modulePathIgnorePatterns: [
"<rootDir>/build",
"<rootDir>/src/__tests__/project/.polywrap"
],
testPathIgnorePatterns: [
"<rootDir>/src/__tests__/project/.polywrap"
],
transformIgnorePatterns: [
"<rootDir>/src/__tests__/project/.polywrap"
],
setupFilesAfterEnv: ["./jest.setup.js"],
testMatch: ["**/build-go.spec.ts"]
};
17 changes: 6 additions & 11 deletions packages/cli/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"commands_build_description": "Build Polywrap Projects (type: interface, wasm)",
"commands_build_error_manifestPathMissing": "{option} option missing {argument} argument",
"commands_build_error_manifestNotFound": "Manifest not found. Search paths used: {paths}",
"commands_build_error_goModNotFound": "go.mod file not found. Search paths used: {paths}",
"commands_build_error_outputDirMissingPath": "{option} option missing {argument} argument",
"commands_build_error_unsupportedProjectType": "Unsupported project type. You can only build the following project types: {supportedTypes}",
"commands_build_keypressListener_exit": "Exit: [CTRL + C], [ESC], or [Q]",
Expand Down Expand Up @@ -91,19 +92,11 @@
"commands_codegen_options_m": "Path to the Polywrap manifest file (default: {default})",
"commands_codegen_options_o": "Output directory for custom generated types (default: 'types/')",
"commands_codegen_options_o_path": "path",
"commands_codegen_options_b": "Uri for custom bindgen wrap (must implement wrap-abi-bindgen interface; see https://github.com/polywrap/wrap-abi-bindgen)",
"commands_codegen_success": "Types were generated successfully",
"commands_codegen_invalid_uri": "Invalid WRAP URI format: {uri}.",
"commands_codegen_project_load_error": "Failed to load project, please make sure {manifestPath} is a valid Project manifest",
"commands_codegen_options_publish": "Output path for the built schema and manifest (default: {default})",
"commands_docgen_description": "Generate wrapper documentation",
"commands_docgen_success": "Docs were generated successfully",
"commands_docgen_default": "default",
"commands_docgen_options_c": "Output directory for generated docs (default: {default})",
"commands_docgen_options_m": "Path to the project manifest file (default: {default})",
"commands_docgen_options_schema": "Generate GraphQL schema",
"commands_docgen_options_markdown": "Generate {framework} markdown",
"commands_docgen_options_i": "Also generate docs for dependencies",
"commands_docgen_error_manifestNotFound": "Manifest not found. Search paths used: {paths}",
"commands_docgen_error_projectLoadFailed": "Could not load project form the given manifest. Manifest: `{manifestFile}`",
"commands_create_description": "Create New Projects",
"commands_create_directoryExists": "Directory with name {dir} already exists",
"commands_create_error_commandFail": "Command failed: {error}",
Expand Down Expand Up @@ -176,7 +169,6 @@
"commands_test_error_unsupportedOutputFileExt": "Unsupported outputFile extention: {outputFileExt}",
"commands_test_error_cueDoesNotExist": "Require cue to run validator, checkout https://cuelang.org/ for more information",
"commands_test_error_noWorkflowScriptFound": "Workflow script not found at path: {path}",
"commands_test_error_noTestEnvFound": "polywrap test-env not found, please run 'polywrap infra up --modules=eth-ens-ipfs'",
"commands_polywrap_error_notACommand": "is not a command",
"commands_polywrap_helpPrompt": "Type {command} to view common commands",
"commands_manifest_description": "Inspect & Migrade Polywrap Manifests",
Expand Down Expand Up @@ -243,6 +235,8 @@
"lib_helpers_deployManifestExt_loadError": "Failed to load deploy manifest extension from {path}",
"lib_helpers_deployManifestExt_loadText": "Load manifest extension from {path}",
"lib_helpers_deployManifestExt_loadWarning": "No manifest extension found in {path}",
"lib_helpers_gomod_unableToLoad": "Unable to load go.mod: {path}",
"lib_helpers_gomod_invalid": "Invalid format of go.mod: {path}",
"lib_helpers_manifest_outputError": "Failed to output manifest to {path}",
"lib_helpers_manifest_outputText": "Manifest written to {path}",
"lib_helpers_manifest_outputWarning": "Warnings writing manifest to {path}",
Expand Down Expand Up @@ -282,6 +276,7 @@
"lib_typescript_tsNodeNotInstalled": "Your project uses typescript, but ts-node is not installed",
"lib_watcher_alreadyWatching": "Watcher session is already in progress. Directory: {dir}",
"lib_wasm_rust_invalidModule": "Module paths must point to Cargo.toml files. Found: {path}",
"lib_wasm_golang_invalidModule": "Module paths must point to go.mod file. Found: {path}",
"lib_docker_invalidImageId": "Invalid docker image ID returned: {imageId}",
"lib_docker_noInstall": "Docker executable not found in PATH",
"lib_infra_unrecognizedModule": "Unrecognized modules: {modules}. Default modules: {defaultModules}",
Expand Down
Loading