Closed kbumsik closed 1 year ago
Hi @kbumsik, thanks for your report!
I'm not too familiar with Rust, but it seems that something went wrong compiling Taplo (which is written in Rust), not in the pre-commit hook. Does it help to clean your pre-commit
cache and compile again? (It will take some time though...) Maybe it also helps to remove your cargo directory (but again, I'm no Rust programmer, so I'm not sure if this affect any other work you are doing.) So:
rm -rf /home/liam/.cargo
pre-commit clean
pre-commit run -a
Hi, thanks for the quick reply.
Clearing and rebuilding does not help. Maybe I should report to the upstream then?
I am not familiar with Rust and Cargo neither, so I have no idea how to reproduce the building procedure without pre-commit. Is there any bare building commands without pre-commit so I could try reproduce and hopefully report upstream?
Maybe I should report to the upstream then?
Probably better. For installation, you may find an answer here: https://taplo.tamasfe.dev/cli/installation/cargo.html https://doc.rust-lang.org/cargo/getting-started/installation.html
Btw, you can also try the taplo-docker
hook. @m-roberts has implemented that and may have more info on how to get that to work.
@kbumsik @christos-P @marionlb
Could you give the hook a try again? There seem to have been some upstream updates and the hook is working again for me (tag v0.8.1
).
You may need to clean up some caches first, see https://github.com/ComPWA/mirrors-taplo/issues/6#issuecomment-1717653407
Bug description
When I run pre-commit in a fresh environment, I started getting compilation error.
How to reproduce?
Steps to reproduce the behavior:
pre-commit run taplo -a
I get a compile error:
System info
Bug resulted on the following system: