Sha256: 770b63c5797373cd71d52960abfe0304ba675a1cd73366eff57ca1e48ce90354
Contents?: true
Size: 975 Bytes
Versions: 7
Compression:
Stored size: 975 Bytes
Contents
# frozen_string_literal: true module LicenseFinder class Trash < PackageManager class << self def package_management_command 'trash' end def prepare_command 'trash' end def takes_priority_over Go15VendorExperiment end end def possible_package_paths [project_path.join('vendor.conf')] end def current_packages dependencies_path = project_path.join('trash.lock') YAML.load_file(dependencies_path).fetch('import').map do |package_hash| import_path = package_hash.fetch('package') license_path = project_path.join('vendor', import_path) GoPackage.from_dependency({ 'ImportPath' => import_path, 'InstallPath' => license_path, 'Rev' => package_hash.fetch('version') }, nil, true) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems