Open firepol opened 3 months ago
Hi, the version which will be downloaded depends on the graph-cli and is defined by this function https://github.com/graphprotocol/graph-tooling/blob/main/packages/cli/src/commands/test.ts#L175-L231
There's a workaround for unsupported platforms, you can use docker to run the test by passing -d
flag to the test command https://thegraph.com/docs/en/developing/unit-testing-framework/#docker
Further development of matchstick (for the time being) will be handled by TheGraph in the tooling repo https://github.com/graphprotocol/graph-tooling/pull/1549
Summary
Result: on Linux
yarn test
tries to download (inexisting, 404 error)https://github.com/LimeChain/matchstick/releases/download/0.6.0/binary-linux-20
Expected result:
yarn test
should downloadhttps://github.com/LimeChain/matchstick/releases/download/0.6.0/binary-linux-22
Details
Hi,
My OS: Fedora Liunux 39 Node version: v18.x LTS, tried also v20.x LTS
I'm creating a subgraph using the cli, see https://thegraph.com/docs/en/developing/creating-a-subgraph/#from-an-existing-contract
This creates a package.json as follows:
When I run
yarn test
I get this error:I did
yarn upgrade matchstick-as
, which downloaded 0.6.0. When I runyarn test
I get the exact same error. Seems both 0.5 and 0.6 try to download the file0.6.0/binary-linux-20
.But the correct file is
0.6.0/binary-linux-22
Full URL: https://github.com/LimeChain/matchstick/releases/download/0.6.0/binary-linux-22
You can double check at https://github.com/LimeChain/matchstick/releases/tag/0.6.0
Can you fix this please? So that all subgraph users on Linux can use matchstick for testing without hassle*?
*"Hassle": I guess (hope) there is a workaround like manually downloading binary-linux22 and placing it somewhere? Can you tell me how/where until this is fixed? Thank you