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

Cost-model package on NPM does not include required files for local compile #830

Closed
fordN opened this issue Dec 7, 2023 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@fordN
Copy link
Contributor

fordN commented Dec 7, 2023

Most users will not need to build the native Rust binaries locally on their machine since there are prebuilt binaries hosted on GitHub. However, for some users (primarily those on M1 or M2 macs) there are no prebuilt binaries and the build falls back to compiling the Rust binary locally. In this case, the NPM package does not include all the necessary files for compilation.

error: failed to get `cost-model` as a dependency of package `cost-model-node-plugin v0.1.0 (/indexer/node_modules/@graphprotocol/cost-model)`

Caused by:
  failed to load source for dependency `cost-model`

Caused by:
  Unable to update /indexer/node_modules/@graphprotocol/lang

Caused by:
  failed to read `/indexer/node_modules/@graphprotocol/lang/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

@fordN fordN added the bug Something isn't working label Dec 7, 2023
@fordN fordN self-assigned this Dec 7, 2023
@fordN fordN added this to Indexer Dec 7, 2023
@github-project-automation github-project-automation bot moved this to 🗃️ Inbox in Indexer Dec 7, 2023
@fordN
Copy link
Contributor Author

fordN commented Jan 31, 2024

Resolved in #829

@fordN fordN closed this as completed Jan 31, 2024
@github-project-automation github-project-automation bot moved this from 🗃️ Inbox to ❌ Closed in Indexer Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Closed
Development

No branches or pull requests

1 participant