Skip to content

Commit

Permalink
Merge pull request #651 from kaystrobach/patch-1
Browse files Browse the repository at this point in the history
[FEATURE] Ensure composer always installs the packages
  • Loading branch information
xtreme-shane-lattanzio committed Jan 7, 2020
2 parents 4cc91d3 + e1c212b commit f24a563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/license_finder/package_managers/composer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.package_management_command
end

def prepare_command
'composer install'
'composer install --no-plugins --ignore-platform-reqs --no-interaction'
end

def package_path
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/license_finder/package_managers/composer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ module LicenseFinder
FileUtils.mkdir_p(root)
end

it 'should call composer install' do
expect(SharedHelpers::Cmd).to receive(:run).with('composer install')
it 'should call composer install --no-plugins --ignore-platform-reqs --no-interaction' do
expect(SharedHelpers::Cmd).to receive(:run).with('composer install --no-plugins --ignore-platform-reqs --no-interaction')
.and_return([composer_shell_command_output, '', cmd_success])
subject.prepare
end
Expand Down

0 comments on commit f24a563

Please sign in to comment.