Skip to content
Snippets Groups Projects

Refactor package/dependency code to use consistent terminology

Merged Warren Gifford requested to merge olafurpg/packages-terminology into main

Created by: olafurpg

Towards #37990 (closed).

This PR is a pure refactoring. There are no functional differences.

  • a "package" refers to an npm/maven/go package/artifact/module
  • a "dependency" refers to the dependency relationship between two packages
  • distinguish whether a package has a version or not. Previously, we silently used the empty string for versions when it was missing. The distinction is important because we only need a package without versions to create a Sourcegraph repo. The version is needed only when cloning/fetching that repository.

Test plan

See the tests pass.

Merge request reports

Merged by avatar (Jul 13, 2025 2:40am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading