setup-rye
setup-rye copied to clipboard
bug?: Drops `.rye` in current location
The current iteration of the action seems to drop the .rye
folder in the project directory. When doing type-checking or other actions, this causes a lot of side effects.
For example, rye check
has a lot of noise:
| error: Failed to parse .rye/py/[email protected]/lib/python3.12/idlelib/idle_test/example_stub.pyi:1:66: EOL while scanning string literal
| error: Failed to parse .rye/py/[email protected]/lib/Tix8.4.3/pref/WmDefault.py:86:2: unindent does not match any outer indentation level
| error: Failed to parse .rye/py/[email protected]/lib/python3.11/lib2to3/tests/data/crlf.py:1:7: Unexpected token "hi"
| error: Failed to parse .rye/py/[email protected]/lib/Tix8.4.3/pref/WmDefault.py:86:2: unindent does not match any outer indentation level
| error: Failed to parse .rye/py/[email protected]/lib/python3.11/lib2to3/tests/data/different_encoding.py:3:7: Unexpected token u"ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ"
| error: Failed to parse .rye/py/[email protected]/lib/python3.11/lib2to3/tests/data/py2_test_grammar.py:31:27: Invalid Token
| error: Failed to parse .rye/py/[email protected]/lib/python3.11/lib2to3/tests/data/false_encoding.py:2:7: Unexpected token "#coding=0"
| error: Failed to parse .rye/py/[email protected]/lib/python3.11/lib2to3/tests/data/bom.py:2:7: Unexpected token "BOM BOOM!"
| error: Failed to parse .rye/py/[email protected]/lib/python3.12/test/tokenizedata/badsyntax_3131.py:2:1: Got unexpected token €
| error: Failed to parse .rye/py/[email protected]/lib/python3.12/test/test_lib2to3/data/py2_test_grammar.py:31:27: Invalid Token
| error: Failed to parse .rye/py/[email protected]/lib/python3.12/test/test_lib2to3/data/false_encoding.py:2:7: Unexpected token "#coding=0"
| error: Failed to parse .rye/py/[email protected]/lib/python3.12/test/test_lib2to3/data/bom.py:2:7: Unexpected token "BOM BOOM!"
| error: Failed to parse .rye/py/[email protected]/lib/python3.12/test/test_lib2to3/data/crlf.py:1:7: Unexpected token "hi"
| error: Failed to parse .rye/py/[email protected]/lib/python3.12/test/test_lib2to3/data/different_encoding.py:3:7: Unexpected token u"ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ"
| error: Failed to parse .rye/py/[email protected]/lib/python3.11/test/badsyntax_3131.py:2:1: Got unexpected token €
Could you please consider adding a method to control the location where .rye
is placed? Or just put it in $HOME
? Thanks for the helpful Action! :)
Hi. Could you please link to a public run where this failed or provide a minimal example which shows this error?
Are you sure you are on the latest version of this action?
Here's a funky run where Ruff scanned every file in .rye
- at least it did so quickly...
However, I was on tag v1! Sorry about that! I'll try again tomorrow with the v2 tag instead.
Okay. That explains my confusion. This exact issue was reported in https://github.com/eifinger/setup-rye/issues/193 and solved with the breaking change in V2. Using the latest version should definitely solve your problems.
Since there was no update I guess your issue was solved. Feel free to reopen if it persists