Skip to content

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/std@0.1.0/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