Skip to content

Commit

Permalink
feat(go-bindgen): skip gojs imports
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Sep 18, 2024
1 parent ffdef83 commit aadb6e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ jobs:
- uses: cargo-bins/[email protected]
- run: cargo binstall -y [email protected]
- run: go generate ./tests/go/...
- run: go test ./...
continue-on-error: true # TODO: remove
- run: go test -v ./...
- run: git diff --exit-code

test-dev:
Expand All @@ -124,8 +123,7 @@ jobs:
- run: cargo binstall -y [email protected]
- run: cargo test --workspace --all-targets
- run: go generate -tags=dev ./...
- run: go test -tags=dev ./...
continue-on-error: true # TODO: remove
- run: go test -v -tags=dev ./...
- run: git diff --exit-code

gofmt:
Expand Down
3 changes: 3 additions & 0 deletions cmd/west-bindgen-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ func generate(path string) error {
pos := pkg.Fset.Position(dir.Pos())
return fmt.Errorf("%s:%d: unexpected `go:wasmimport` directive format: %s", pos.Filename, pos.Line, dir.Text)
}
if instance == "gojs" {
continue
}

var callArgs []ast.Expr
appendArg := func(arg *ast.Field) error {
Expand Down

0 comments on commit aadb6e9

Please sign in to comment.