From b5c6b0a5f96613c8944c18ffab261b0799b92d8b Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 27 Feb 2020 15:43:41 -0700 Subject: Install mono-complete for Net.HTTP libraries so NuGet can make API calls --- config/install.sh | 4 ++-- lib/license/management.rb | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/config/install.sh b/config/install.sh index 768ba50..3f1348f 100644 --- a/config/install.sh +++ b/config/install.sh @@ -4,7 +4,7 @@ set -euo pipefail export DEBIAN_FRONTEND=noninteractive apt-get clean -apt-get update +apt-get update -q apt-get install -y --no-install-recommends \ apt-transport-https \ apt-utils \ @@ -76,7 +76,7 @@ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BF echo "deb https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list apt-get update -q -apt-get install -y --no-install-recommends dotnet-sdk-3.1 mono-runtime +apt-get install -y --no-install-recommends dotnet-sdk-3.1 mono-complete curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe mkdir -p "$ASDF_DATA_DIR" diff --git a/lib/license/management.rb b/lib/license/management.rb index f186f80..37fe1a0 100644 --- a/lib/license/management.rb +++ b/lib/license/management.rb @@ -13,18 +13,6 @@ require 'license/management/version' # This applies a monkey patch to the JsonReport found in the `license_finder` gem. LicenseFinder::JsonReport.prepend(License::Management::Report) -module LicenseFinder - class Nuget - def self.package_management_command - 'nuget' - end - - def self.nuget_check - 'which nuget' - end - end -end - module License module Management def self.root -- cgit v1.2.3