Skip to content

Commit

Permalink
run go mod tidy before preparing gomod projects
Browse files Browse the repository at this point in the history
[#165312186]

Signed-off-by: Yoon Jean Kim <ykim@pivotal.io>
  • Loading branch information
Vikram Yadav authored and JennyYJK committed May 13, 2019
1 parent ad9d332 commit 99e79c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/license_finder/package_managers/go_modules.rb
Expand Up @@ -12,7 +12,7 @@ def takes_priority_over
end

def prepare_command
'GO111MODULE=on go mod vendor'
'GO111MODULE=on go mod tidy && GO111MODULE=on go mod vendor'
end
end

Expand Down
Expand Up @@ -58,7 +58,7 @@ module LicenseFinder

describe '.prepare_command' do
it 'returns the correct package management command' do
expect(described_class.prepare_command).to eq('GO111MODULE=on go mod vendor')
expect(described_class.prepare_command).to eq('GO111MODULE=on go mod tidy && GO111MODULE=on go mod vendor')
end
end

Expand Down

0 comments on commit 99e79c6

Please sign in to comment.