3 ms·
That happened to a Go repo of mine once as well (except it was a python script causing the misidentification). I fixed it by adding a gitattributes file to the
by w8rbt 8y ago
That happened to a Go repo of mine once as well (except it was a python script causing the misidentification). I fixed it by adding a gitattributes file to the repo. Here it is:
https://github.com/w8rbt/netscan/blob/master/.gitattributes https://github.com/w8rbt/netscan/blob/master/.gitattributes
- StavrosK 8y agoWhy is the fix to tell Github that py files are Go? I would have expected the fix to be to tell it that go files are Go instead, no?
- rmetzler 8y agoI would guess, the real fix is to improve linguist, the Ruby gem GitHub uses to determine the programming language. Everything else is a workaround. https://github.com/github/linguist https://github.com/github/linguist
- Ne0nd0g 8y agoThanks!