Skip to content

Clean up repository inventory code

Warren Gifford requested to merge inventory-cleanup into master

Created by: sqs

The repository inventory component is what scans a repository and counts the number of bytes of code written in each programming language, to determine the repository's primary programming language. This is a refactor PR that does not affect any user- or API consumer-facing behavior.

  • move Go package ./pkg/inventory to underneath ./cmd/frontend/...

    Only the frontend uses the inventory (which is the listing of languages used in a repository), so it can and should become an internal package under ./cmd/frontend.

  • remove internal API for repo inventory

    These are no longer used. They were previously used by the indexer, which triggered indexing of defs and refs data for cross-repository code intelligence. This indexer was removed prior to Sourcegraph 3.0.

Merge request reports

Loading