Monorepo for Tangled tangled.org

knotserver: detect bun.lock files as generated #576

merged opened by oppi.li targeting master from push-xvrvnuvsmslv

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

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3lypdhvllcr22
+4 -1
Diff #0
+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" ··· 20 21 return nil 21 22 } 22 23 23 - if enry.IsGenerated(filepath, content) { 24 + if enry.IsGenerated(filepath, content) || 25 + enry.IsBinary(content) || 26 + strings.HasSuffix(filepath, "bun.lock") { 24 27 return nil 25 28 } 26 29

History

1 round 0 comments
sign up or login to add to the discussion
oppi.li submitted #0
1 commit
expand
knotserver: detect bun.lock files as generated
expand 0 comments
pull request successfully merged