Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

knotserver: detect bun.lock files as generated

this is a patch fix, the real fix would be to add this to go-enry's list
of generated file names.

Signed-off-by: oppiliappan <me@oppi.li>

authored by

oppiliappan and committed by
Tangled
90baf781 7fd36cbc

+4 -1
+4 -1
knotserver/git/language.go
··· 3 3 import ( 4 4 "context" 5 5 "path" 6 + "strings" 6 7 7 8 "github.com/go-enry/go-enry/v2" 8 9 "github.com/go-git/go-git/v5/plumbing/object" ··· 21 20 return nil 22 21 } 23 22 24 - if enry.IsGenerated(filepath, content) { 23 + if enry.IsGenerated(filepath, content) || 24 + enry.IsBinary(content) || 25 + strings.HasSuffix(filepath, "bun.lock") { 25 26 return nil 26 27 } 27 28