From 7c48761abcd59ca79c01f730653c1485ccbdebdd Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 2 Sep 2020 20:19:25 -0600 Subject: fix: Update tool plugin to fetch latest version definitions --- lib/license/management/tool_box.rb | 1 + spec/integration/go/modules_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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')) -- cgit v1.2.3