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 Windows bindgen. #52

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

tensor-programming
Copy link

@tensor-programming tensor-programming commented May 18, 2023

attempts to fix #51 by adding a simple cfg for windows. Still has an issue where these lines fail.

await globalThis.__mashin.downloadProvider(
      "github",
      new URL(
         getFileName("mashin_provider_starter"),
         `https://github.com/nutshimit/mashin_provider_starter/releases/download/v${VERSION}/`
      ).toString()
   )

While the file does exist on the starter repo, it doesn't seem to pull it down. The Deno.env.get("LOCAL_PLUGIN") env var seems to always default to remote causing it to pull down from the repo regardless of whether or not the call is local.

   Error: Error: Could not open library: The specified module could not be found.

    at new DynamicProvider (ext:mashin_core/40_ffi.js:14:9)
    at new Provider (https://mashin.run/[email protected]/sdk/resource.ts:20:9)
    at new Provider (file:///C:/Projects/rust/mashin-provider-starter/mod.ts:35:9)
    at file:///C:/Projects/rust/mashin-provider-starter/examples/my_provider.ts:5:18

@tensor-programming tensor-programming changed the title Fix/windows Fix Windows bindgen. May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error running on windows.
1 participant