Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow composer require --no-update #1150

Merged

Conversation

claudiu-cristea
Copy link
Contributor

@claudiu-cristea claudiu-cristea commented Dec 1, 2023

Overview

This pull request:

  • Fixes a bug
  • Adds a feature
  • Breaks backwards compatibility
  • Has tests that cover changes
  • Adds or fixes documentation

Summary

  • Allow to add --no-update option to composer require.
  • Fixes a bug: It wasn't possible to pass the package(s) to composer remove

Description

New \Robo\Task\Composer\RequireDependency::noUpdate() method

@claudiu-cristea claudiu-cristea changed the title Allow --no-update Allow composer require --no-update Dec 1, 2023
);
$this->assertEquals(
'composer remove --dev --no-progress --no-update --no-interaction',
$this->adjustQuotes("composer remove 'foo/bar' --dev --no-progress --no-update --no-interaction"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing test was not very useful!

@greg-1-anderson
Copy link
Member

Thanks!

@greg-1-anderson greg-1-anderson merged commit fec6afc into consolidation:4.x Dec 1, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants