graph-tooling
graph-tooling copied to clipboard
`graph test` throws "Unsupported platform" on any Linux distro other than Ubuntu
Which packages are impacted by your issue?
@graphprotocol/graph-cli
Describe the issue
Running graph test
on any distro other than Ubuntu throws:
kholdstare@5ced7da9ec4e:~/workspace/code/blockchain/subgraph$ yarn graph test -l
OS type: Debian GNU/Linux
OS arch: x64
OS release: 11 (bullseye)
OS major version: 11
CPU model: AMD Ryzen 9 3900X 12-Core Processor
/home/kholdstare/workspace/code/node_modules/gluegun/build/index.js:15
throw up;
^
Error: Unsupported platform: Linux x64 11
There should at least be an "escape hatch" where the user either manually specifies which release they want to use, or have a way to point at an existing release with a filepath. Ideally in the long-run, the binary is just statically linked and all of this is moot and it works on any linux distribution.
Reproduction
N/A
Steps to Reproduce the Bug or Issue
Use any Linux Distribution besides Ubuntu
Expected behavior
Be able to run graph test
Screenshots or Videos
No response
Platform
- OS: Linux Debian 11
- NodeJS: 18.19
-
@graphprotocol/graph-cli
:0.63.1
- `@graphprotocol/graph-ts": "0.32.0"
Subgraph Manifest
No response
Subgraph GraphQL Schema
No response
Additional context
No response
yeah we are working on improving the support for this #1543
@saihaj @dimitrovmaksim How is the migration going? Any updates? Thank you!
This is currently stopping us from using newer matchstick features like assert messages, and dataSourceExists
, just because we are using a Debian image.
Hey, @KholdStare, sorry I'm not working on this, so can't give you any updates. Potentially you can build matchstick from source and run it independently from the graph-cli
@KholdStare it is WIP https://github.com/graphprotocol/graph-tooling/pull/1549 had some other pressing issues to fix but do we want to resolve this in coming weeks
Any update ? Right now we are manually editing getPlatform
in test.js
to return binary-linux-22
on Debian… (other than installing postgresql
, which is quite annoying)
@saihaj @dimitrovmaksim It has been almost 8 months. Is it possible to just add a flag to pass an explicit release on the commandline? This would bypass the check and enable people to use newer versions without hacks.
@KholdStare as I said in my previous comment, I'm not responsible for the matchstick development anymore , nor am I part of the graph team, so I don't have any information at all