Sha256: 37f3bda9cc4e10fcb6a89df9a9b380cfaf36a197896e79e1ff2ccd24178f947d
Contents?: true
Size: 889 Bytes
Versions: 2
Compression:
Stored size: 889 Bytes
Contents
# frozen_string_literal: true require 'toml' module LicenseFinder class Dep < PackageManager def possible_package_paths [project_path.join('Gopkg.lock')] end def current_packages toml = TOML.load_file(detected_package_path) projects = toml['projects'] return [] if projects.nil? projects.map do |project| GoPackage.from_dependency({ 'ImportPath' => project['name'], 'InstallPath' => project_path.join('vendor', project['name']), 'Rev' => project['revision'] }, nil, true) end end def self.takes_priority_over Go15VendorExperiment end def prepare_command 'dep ensure -vendor-only' end def package_management_command 'dep' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-6.1.2 | lib/license_finder/package_managers/dep.rb |
license_finder-6.1.0 | lib/license_finder/package_managers/dep.rb |