wasmerio / wasmer-go

🐹🕸️ WebAssembly runtime for Go
https://pkg.go.dev/github.com/wasmerio/wasmer-go
MIT License
2.8k stars 161 forks source link

Build fails due to missing -lwasmer library when vendored #370

Open alexpitsikoulis opened 1 year ago

alexpitsikoulis commented 1 year ago

Describe The Bug

The library works fine unless I vendor, in which case the build fails

Steps To Reproduce

  1. Create project using the library
  2. go mod vendor
  3. build the project

Expected Behavior

Successful build

Actual Behavior

/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed: exit status 1 ld: warning: directory not found for option '-L/<PATH TO DIRECTORY>/vendor/github.com/wasmerio/wasmer-go/wasmer/packaged/lib/darwin-aarch64' ld: library not found for -lwasmer clang: error: linker command failed with exit code 1 (use -v to see invocation)

dullduck commented 1 year ago

same problem

laotoutou commented 1 year ago

same problem

glethuillier commented 1 year ago

Same problem.