Showing half my repository is assembly with no asm files anywhere. #7358
Replies: 2 comments
-
We've got a doc for that 😉
🤔 I get one file: So why is this showing so high? This line from the doc I've just referenced:
➜ github-linguist --breakdown boykisser-os/
55.45% 58140 Assembly
35.25% 36956 Rust
5.80% 6078 Makefile
3.51% 3679 C
[...]
Assembly:
boykernel/spleen-2.1.0/dos/spleen.asm
[...]This one file is larger by bytes of code than all the Rust in the repo put together. This doesn't look like a file you've written yourself so you probably want to consider using an override to mark this file as vendored. |
Beta Was this translation helpful? Give feedback.
-
|
I'll just gitignore that folder or sub module it, I didn't think that had
any it's supposed to be fonts. but thanks, I got confused because my search
just doesn't show those for some reason.
…On Tue, Apr 29, 2025, 9:28 AM Colin Seymour ***@***.***> wrote:
not too sure how linguist works internally.
We've got a doc for that
<https://github.com/github-linguist/linguist/blob/main/docs/how-linguist-works.md>
😉
When you click assembly to show the relevant files, nothing is shown.
🤔 I get one file: boykernel/spleen-2.1.0/dos/spleen.asm.
So why is this showing so high? This line from the doc I've just
referenced:
The percentages are calculated based on the bytes of code for each
language as reported by the List Languages
<https://docs.github.com/rest/reference/repos#list-repository-languages>
API.
➜ github-linguist --breakdown boykisser-os/55.45% 58140 Assembly35.25% 36956 Rust5.80% 6078 Makefile3.51% 3679 C
[...]
Assembly:boykernel/spleen-2.1.0/dos/spleen.asm
[...]
This one file is larger by bytes of code than all the Rust in the repo put
together.
This doesn't look like a file you've written yourself so you probably want
to consider using an override to mark this file as vendored
<https://github.com/github-linguist/linguist/blob/266912b913855446ec51c002985010dbe51c524a/docs/overrides.md#vendored-code>
.
—
Reply to this email directly, view it on GitHub
<#7358 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQNSIONLUISVBQXM6G75PUL236D7LAVCNFSM6AAAAAB4DC2LYCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEOJYGE4DINY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I originally asked about this here
I am working on Rust code for an operating system, and there is some inline assembly present, but it's showing almost half the repository is assembly, with the rest being Rust + Makefile. When you click assembly to show the relevant files, nothing is shown. My only guess is any inline assembly marks the entire file as assembly for some reason, not too sure how linguist works internally.
This is the repository in question
ofluffydev/boykisser-os
Beta Was this translation helpful? Give feedback.
All reactions