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

bug: cargo sort reports "No file found at" error when there are dots in directory path. #71

Open
liurenjie1024 opened this issue Feb 20, 2024 · 0 comments

Comments

@liurenjie1024
Copy link

How to reproduce

  1. Download https://dist.apache.org/repos/dist/dev/iceberg/iceberg-rust-0.2.0-rc.1/apache-iceberg-rust-0.2.0-src.tar.gz
  2. Run mkdir tmp && cd tmp && tar -xzf ../apache-iceberg-rust-0.2.0-src.tar.gz && cd apache-iceberg-rust-0.2.0-src
  3. Run cargo sort -c -w

Then it reports "No file found at" error.

Investigation

I think the bug is in this line, since it considers any path which contains dots as file with extension.

If we rename dir name apache-iceberg-rust-0.2.0-src to anything without dots, it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant