You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thanks for this awesome flake!
The recent change in commit e48a60c appears to have broken the flake functionality. This commit modified the binary file detection logic from:
find "$(realpath "$VENV_PATH")" -type f -executable -exec sh -c "file -i '{}' | grep -qE 'x-(.*); charset=binary'"\; -print
to:
find "$(realpath "$VENV_PATH")" -type f -exec sh -c "file -i '{}' | grep -qE 'application/x-(executable|sharedlib); charset=binary'"\; -print
While this change was made to address issue #19 regarding -executable excluding too many files, it causes the flake to hang indefinitely when trying to use it.
Automatically adding "patchelf" to PATH.
Searching forfiles to patchin .venv
This appears to be related to the change in binary file detection logic, possibly due to the removal of the -executable filter causing the search to process too many files or enter an infinite loop.
Im gonna stick to the older commit for now as it just works for me. But this should probably be investigated.
The text was updated successfully, but these errors were encountered:
The venv was created via poetry.
Ive exported the requirements via uv. requirements.txt
Tested with a differnt repository, where the venv was created via uv. It worked. but took significantly longer. (only installed pandas). This might simply be a performance issue in that case. But for larger venvs, this might be almost prohibitively long.
Thank you. That makes sense and I have noticed a slow down as well (though not as big as you have, probably for diverse reason).
This issue is definitely "a bug" that needs to be fixed.
An option is to have both mechanisms to find files that can be used, depending on the context. Maybe I should allow using the former mechanism with a --fast flag. Maybe I should revert to the former mechanism and add a flag --deep to use the new mechanism.
The best answer is probably to rewrite it in [insert low level language], which I'm very interested to do, but realistically don't have the time at the moment.
Hello and thanks for this awesome flake!
The recent change in commit e48a60c appears to have broken the flake functionality. This commit modified the binary file detection logic from:
to:
While this change was made to address issue #19 regarding
-executable
excluding too many files, it causes the flake to hang indefinitely when trying to use it.Steps to reproduce:
nix shell github:GuillaumeDesforges/fix-python/e48a60c2d6a888ad2c5ddfcf36590c924f5df58a
Now:
nix shell github:GuillaumeDesforges/fix-python/
This appears to be related to the change in binary file detection logic, possibly due to the removal of the
-executable
filter causing the search to process too many files or enter an infinite loop.Im gonna stick to the older commit for now as it just works for me. But this should probably be investigated.
The text was updated successfully, but these errors were encountered: