-
Notifications
You must be signed in to change notification settings - Fork 227
Add graph node install
command to install local dev node
#2041
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 5b886f2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Deploying graph-tooling with
|
Latest commit: |
5b886f2
|
Status: | ✅ Deploy successful! |
Preview URL: | https://f6de18f1.graph-tooling.pages.dev |
Branch Preview URL: | https://krishna-gnd.graph-tooling.pages.dev |
} | ||
|
||
export async function getLatestGraphNodeRelease(): Promise<string> { | ||
return getLatestGithubRelease('incrypto32', 'graph-node'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to move this repo to graphprotocol
org? Or just publish binaries with every release in graph-node
repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that was left over from testing since we dont have a graph-node-dev
(gnd) binary released yet, thanks for catching i'll update it
Doesn't seem to work on Debian: $ graph node install
Downloading v1.0-test [==============================] 100%
Extracting binary...
✅ Graph Node v1.0-test installed successfully
Binary location: /home/yaro/.local/bin/gnd
📋 Next steps:
Add /home/yaro/.local/bin to your PATH (if not already)
Run 'gnd' to start your local Graph Node development environment
$ ~/.local/bin/gnd
/home/yaro/.local/bin/gnd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /home/yaro/.local/bin/gnd)
/home/yaro/.local/bin/gnd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by /home/yaro/.local/bin/gnd)
# yaro @ xops in ~ [13:44:46] C:1
$ uname -a
Linux xops 6.1.0-34-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.135-1 (2025-04-25) x86_64 GNU/Linux
Although maybe that's an out-of-date version I have here. |
Curious why do you want to deal with binaries if you could run the official docker image? |
packages/cli/src/commands/node.ts
Outdated
const { flags, args } = await this.parse(NodeCommand); | ||
|
||
if (args.install) { | ||
await installGraphNode(flags.tag, flags['bin-dir']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's catch the exceptions without printing the call stack, i.e.
this.error(`Failed to install: ${e.message}`, { exit: 1 });
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, making the change
@YaroShkvorets this is for |
@YaroShkvorets i'll look into the debian issue, it needs to be fixed the binaries are built in the latest linux causing issues. I will take a look, maybe need to use a bundled version of rust crates that use that c lib. |
No description provided.