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

Unrequire command in cli. #1622

Closed
ahilles107 opened this issue Feb 27, 2013 · 12 comments
Closed

Unrequire command in cli. #1622

ahilles107 opened this issue Feb 27, 2013 · 12 comments
Labels
Milestone

Comments

@ahilles107
Copy link

I need unrequire command on composer cli, or info how to extort package removing from vendor/ directory and fire uninstall composer event.

@kdambekalns
Copy link
Contributor

+1 for this

@ahilles107
Copy link
Author

right now we do this with update command and composer.json modification (with php).

@miklosm
Copy link
Contributor

miklosm commented Feb 10, 2014

👍 . I just realized I can't remove an outdated dependency without updating. Even though I have specific versions of packages listed I see that dependencies of those packages are getting updated. Kind of sucks. :-/

@stof
Copy link
Contributor

stof commented Feb 24, 2014

@miklosm It looks to me that you are using an old version of Composer. The latest composer version does not whitelists dependencies of updated packages in partial updates (unless you use the option to ask for it)

@miklosm
Copy link
Contributor

miklosm commented Feb 24, 2014

Hi @stof. Could you tell me approximately what 'an old version' would be? It could be the case, since I noticed this during a jenkins build, and I don't think composer is updated on that server.

@stof
Copy link
Contributor

stof commented Feb 24, 2014

it was changed 4 months ago

@miklosm
Copy link
Contributor

miklosm commented Feb 24, 2014

Thank you. It might have been it. Seems like composer on that server is older than that.

@schmunk42
Copy link
Contributor

+1 composer should also warn you, if you're trying to remove a package, which is required by another one.

@stof
Copy link
Contributor

stof commented Feb 24, 2014

@schmunk42 It will not warn you. It will simply keep it. This is why the command is not named remove. It removes the root requirements, not the package

@stof
Copy link
Contributor

stof commented Feb 24, 2014

hmm, actually, the PR is using remove, unlike the suggestion done in the title of this issue

@schmunk42
Copy link
Contributor

Thanks, should be obvious :) my fault.
unrequire sounds a bit unusual, but would be logic.

@Seldaek
Copy link
Member

Seldaek commented Apr 12, 2016

See composer remove

@Seldaek Seldaek closed this as completed Apr 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants