summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-09-02 20:19:25 -0600
committermo khan <mo.khan@gmail.com>2020-09-07 13:39:32 -0600
commit7c48761abcd59ca79c01f730653c1485ccbdebdd (patch)
treef2d01b97da6af9fa2de6bc3687866459a8f94f83
parent35d0769c8ddc6834b56287d60c2f4ee47ec6811a (diff)
fix: Update tool plugin to fetch latest version definitionsv3.25.1
-rw-r--r--lib/license/management/tool_box.rb1
-rw-r--r--spec/integration/go/modules_spec.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/license/management/tool_box.rb b/lib/license/management/tool_box.rb
index d2fe703..9362b5b 100644
--- a/lib/license/management/tool_box.rb
+++ b/lib/license/management/tool_box.rb
@@ -18,6 +18,7 @@ module License
elsif tool == :nodejs
shell.execute(['/opt/asdf/plugins/nodejs/bin/import-release-team-keyring'])
end
+ shell.execute([:asdf, "plugin-update", tool.to_s], env: env)
shell.execute([:asdf, :install, tool.to_s, version], env: env)
shell.execute([:asdf, :local, tool.to_s, version], env: env)
shell.execute([:asdf, :reshim], env: env)
diff --git a/spec/integration/go/modules_spec.rb b/spec/integration/go/modules_spec.rb
index 7d85b9f..6486096 100644
--- a/spec/integration/go/modules_spec.rb
+++ b/spec/integration/go/modules_spec.rb
@@ -15,7 +15,7 @@ RSpec.describe "modules" do
include_examples "each report version", "go", "modules"
- ['1.11', '1.12', '1.13', '1.14'].each do |version|
+ ['1.11', '1.12', '1.13', '1.14', '1.15'].each do |version|
context "when scanning a go.mod and go.sum files with v#{version}" do
before do
runner.add_file('main.go', fixture_file_content('go/main.go'))