-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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] Rust repositories are identified as TOML #10266
Comments
this is normal as there is more TOML content than Rust content |
There are four .rs files in src and one .toml file in the repository root. EDIT: I don't know how the language detection works, but I think if there is a directory called "src" in the project root, it should ignore everything in root and only look in src to determine the language |
GH correctly identified it as Rust, I'm assuming they have some override based on certain files etc. It's being identified as TOML because there's more lines of TOML than Rust, likely due to the cargo files. (More lines isn't exactly correct, as it's based on file size not lines) Using My guess is there'd be a list of things to look for that would "override" primary language, such as a cargo file or |
Cargo.lock file is also detected as yaml so based on file size calculation seems correct |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Not stale |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Fixed by #11681 |
Example: https://git.reekynet.com
Look for the "lqsd" repository and you can see that it is identified as TOML, when it in fact is a Rust project.
The text was updated successfully, but these errors were encountered: