Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(go) Force go mod vendor to copy the packaged/ directory. #197

Merged
merged 3 commits into from
Feb 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
default: true
override: true

- uses: Swatinem/rust-cache@v1

- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions wasmer/cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ package wasmer
//
// #include <wasmer_wasm.h>
import "C"

// See https://github.com/golang/go/issues/26366.
import (
_ "github.com/wasmerio/wasmer-go/wasmer/packaged/include"
_ "github.com/wasmerio/wasmer-go/wasmer/packaged/lib"
)
2 changes: 2 additions & 0 deletions wasmer/packaged/include/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// See https://github.com/golang/go/issues/26366.
package include
Binary file removed wasmer/packaged/lib/darwin-aarch64/libwasmer.dylib
Binary file not shown.
2 changes: 2 additions & 0 deletions wasmer/packaged/lib/darwin-amd64/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// See https://github.com/golang/go/issues/26366.
package darwin_amd64
8 changes: 8 additions & 0 deletions wasmer/packaged/lib/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// See https://github.com/golang/go/issues/26366.
package lib

import (
_ "github.com/wasmerio/wasmer-go/wasmer/packaged/lib/darwin-amd64"
_ "github.com/wasmerio/wasmer-go/wasmer/packaged/lib/linux-aarch64"
_ "github.com/wasmerio/wasmer-go/wasmer/packaged/lib/linux-amd64"
)
2 changes: 2 additions & 0 deletions wasmer/packaged/lib/linux-aarch64/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// See https://github.com/golang/go/issues/26366.
package linux_aarch64
2 changes: 2 additions & 0 deletions wasmer/packaged/lib/linux-amd64/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// See https://github.com/golang/go/issues/26366.
package linux_amd64