go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.02k stars 5.4k forks source link

Code search feature isn't able to find matches in groovy Jenkins declarative pipelines (Jenkinsfile) #16883

Open charlesmorin opened 3 years ago

charlesmorin commented 3 years ago

Description

We have recently enabled the repository indexer (code search feature). However, it seems to not include Jenkins declarative pipeline files, which are normally named Jenkinsfile (without extensions).

I tried setting REPO_INDEXER_INCLUDE to **Jenkinsfile, but no dice.

42wim commented 2 years ago

Bitten by the same issue, the culprit is https://github.com/github/linguist/blob/master/lib/linguist/vendor.yml#L382 which is used by https://github.com/go-enry/go-enry which gitea uses.

Needs https://github.com/go-enry/go-enry/issues/27 to be implemented so we can override vendor detection

viceice commented 1 year ago

So would REPO_INDEXER_EXCLUDE_VENDORED=false^1 make it working again?