Unable to search dependencies with multiple package managers

Bug Report

Using the client for the list project dependencies endpoint. This takes the option to provide an array of package managers to limit the search. However, if you pass more than one package manager, it doesn't work as expected.

It should be constructing the request as follows:

GET /projects/:id/dependencies?package_manager=yarn,bundler

Instead it is doing the following:

GET /projects/:id/dependencies?package_manager=yarn&package_manager=bundler

My assumption is that the last package manager in the array is the one actually used, as some results come back.

Relevant Code

options := &gitlab.ListProjectDependenciesOptions{
  PackageManager: []*gitlab.DependencyPackageManagerValue{gitlab.Ptr(gitlab.Yarn), gitlab.Ptr(gitlab.Bundler)},
}
dependencies, _, err := client.Dependencies.ListProjectDependencies(projectID, options)

Additional Details

  • GitLab Client Go Version: 1.3.0
  • GitLab Instance Version: 18.6
  • Go Version: 1.25
  • License Tier: Ultimate