Skip to content

wasm-pack fails to locate wasm-opt in PATH #869

Closed
@Erk-

Description

@Erk-

🐛 Bug description

wasm-pack does not search PATH for wasm-opt, at least not on targets where there is no prebuilt binary

🤔 Expected Behavior

wasm-pack should find wasm-opt in PATH

👟 Steps to reproduce

Not sure if this is specific to FreeBSD or if it also happens on other operating systems.

  • run wasm-pack
  • observe it fails because wasm-opt is not available
  • install wasm-opt
  • run wasm-pack
  • observe that it does not find wasm-opt even though it is in path.

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: 0.9.1
rustc version: 1.44.1 (FreeBSD ports version)
FreeBSD version: FreeBSD 12.1-RELEASE-p3 GENERIC amd64
wasm-opt version: 93

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions