Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NixOS: Issues with development tools (ruff, pre-commit) #93

Open
krishnans2006 opened this issue Jan 8, 2025 · 0 comments · May be fixed by #98
Open

NixOS: Issues with development tools (ruff, pre-commit) #93

krishnans2006 opened this issue Jan 8, 2025 · 0 comments · May be fixed by #98
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@krishnans2006
Copy link
Member

Since NixOS cannot run dynamically linked executables, running the ruff binary fails, both manually and within pre-commit. The error generated is similar to:

Could not start dynamically linked executable: $HOME/.cache/pre-commit/repou6uk64fj/py_env-python3.11/bin/ruff
NixOS cannot run dynamically linked executables intended for generic linux environments out of the box.

The general solution is to use a version packaged in nixpkgs, and this seems to work for manually running ruff, but using it in pre-commit still fails.

@krishnans2006 krishnans2006 added the question Further information is requested label Jan 8, 2025
@krishnans2006 krishnans2006 added the help wanted Extra attention is needed label Jan 8, 2025
@JasonGrace2282 JasonGrace2282 linked a pull request Jan 14, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant