RobertCraigie / pyright-python

Python command line wrapper for pyright, a static type checker
https://pypi.org/project/pyright/
MIT License
159 stars 22 forks source link

Prebuilt node install fails - v22.0.0 not found #267

Open monkpit opened 4 months ago

monkpit commented 4 months ago

Moved from https://github.com/microsoft/pyright/issues/7762

Using pyright v1.1.360 has started failing for me today in my CI pipeline with the following error:

* Install prebuilt node (22.0.0) .Failed to download from https://unofficial-builds.nodejs.org/download/release/v22.0.0/node-v22.0.0-linux-x64-musl.tar.gz When I follow the link, it indeed does not exist. It looks like this version of node was released today

I am caching pyright in a private repository to avoid issues like this, but I can't avoid this one since it seems to be done at runtime.

For reference, the command in my CI environment is: pyright . --venvpath <path>, and pyright is installed in a previous step using poetry.

Can anyone reproduce this? Are there any workarounds? Can I override the version of node that pyright is asking for via a flag?

EDIT: My current workaround was to add node to my CI build docker image, which is good enough for me, for now.

monkpit commented 4 months ago

I'll close this issue since the build has now been populated (the link in my original post now DOES exist after 1 day), however this issue will probably come up again next time a new version is released. It might make sense to add some logic to gracefully retry another version when the download link 404s.

monkpit commented 2 months ago

Reopening this issue since it’s happening again today with 22.3.0, and should be resolved so this doesn’t crop up again with each node release.