Adding a pixi lock-file makes a repository look like it's mostly YAML #2462
Labels
No labels
accessibility
bug
bug
infrastructure
Codeberg
contributions welcome
docs
duplicate
enhancement
infrastructure
legal
licence / ToS
please chill
we are volunteers
public relations
question
question
user support
s/Forgejo
s/Forgejo/migration
s/Pages
s/Weblate
s/Woodpecker
security
service
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/Community#2462
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Comment
After switching a repository to pixi and adding the
pixi.lockfile in this commit, I noticed that the project now appears as 82.7% YAML:This does not reflect the project of course, it's just that the pixi lock file is 2000+ lines of YAML. This would also happen with other env/package management tools like
uvin Python orcargoin Rust.I would like to open the discussion here, with the suggestion that these lock files are skipped in a repository's language-percentage count.
PS: I haven't contributed to Forgejo so far, but if this is a good first issue (not so intricate) I'd be happy to take a stab at proposing a PR.
Have a look here, please: https://forgejo.org/docs/latest/user/language-detection/
Likely, following line in a
.gitattributesfile, may solve your issue?:Thank you for your feedback. Well, there was already a linguist-generated tag for
pixi.lockin the project's.gitattributesfile:I tried updating the file to
And that way worked: the project got evaluated as 100% Python again. 🟩
I then tried:
=truetolinguist-generated: still 100% Python 🟩linguist-language=YAMLbeforelinguist-generated: back to 87% YAML 🟥Therefore it looks like this could be a parsing issue when a
linguist-languagecomes beforelinguist-generated?I just confirmed that also if you put
linguist-language=YAMLafterlinguist-generatedit still is back to 87% YAML 🟥.Thus, the issue is that the language detection does not care at all about the
linguist-generatedflag.mahlzahn referenced this issue from forgejo/forgejo2026-03-25 17:09:17 +01:00
forgejo-release-notes-assistant referenced this issue from forgejo/forgejo2026-03-30 16:02:35 +02:00