Remove .including_build_info where not used in package code
Proposal
The .including_build_info scope is used in a few different finders, which are used in a variety of places throughout the code:
-
Packages::GroupPackagesFinderPackages::Composer::PackagesFinderResolvers::GroupPackagesResolverGroups::TransferServiceGroups::UpdateServiceAPI::GroupPackagesAPI::Terraform::Modules::V1::Packages
-
Packages::PackageFinderAPI::PackageFilesAPI::ProjectPackages
-
Packages::PackagesFinderResolvers::ProjectPackagesResolverAPI::ProjectPackages
-
Package#versionsAPI::Entities::PackageTypes::Packages::PackageDetailsType
Particularly, Packages::GroupPackagesFinder uses this scope but many of the places where the finder is being called do not need the build info or pipelines preloaded.
We should add an option to Packages::GroupPackagesFinder that will skip this scope by default and only use it in the specific places where the preloading is needed.