Sha256: 0d53bf43208055c9c950b9bbbdaaa5d60403c53e4f9b4e973afb9d2d4447cd4a
Contents?: true
Size: 852 Bytes
Versions: 6
Compression:
Stored size: 852 Bytes
Contents
module LicenseFinder class Govendor < PackageManager def possible_package_paths [project_path.join('vendor', 'vendor.json')] end def current_packages file = File.read(detected_package_path) json = JSON.parse(file) packages = json['package'] packages.map do |package| GoPackage.from_dependency({ 'ImportPath' => package['path'], 'InstallPath' => project_path.join('vendor', package['path']), 'Rev' => package['revision'] }, nil, true) end end def self.takes_priority_over Go15VendorExperiment end def self.package_management_command 'govendor' end def self.prepare_command 'govendor sync' end end end
Version data entries
6 entries across 6 versions & 1 rubygems