Skip to content

Commit

Permalink
[FIXED] Go modules are forced to be enabled on go mod package managers
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Lattanzio <slattanzio@pivotal.io>
  • Loading branch information
Vikram Yadav authored and xtreme-shane-lattanzio committed Oct 15, 2018
1 parent c61fc52 commit cf9123d
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def takes_priority_over
end

def prepare_command
'go mod vendor'
'GOMOD111MODULE=on go mod vendor'
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module LicenseFinder

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

Expand Down

0 comments on commit cf9123d

Please sign in to comment.