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

Add a way to just update the patches section of composer.lock #23

Closed
cweagans opened this issue Nov 16, 2015 · 14 comments
Closed

Add a way to just update the patches section of composer.lock #23

cweagans opened this issue Nov 16, 2015 · 14 comments

Comments

@cweagans
Copy link
Owner

This should be done after #12

Need a way to update the patches we're tracking in composer.lock, but not mess with lib versions or anything else. Possibly something like composer update --patches.

@simesy
Copy link

simesy commented Feb 3, 2016

This might be helpful composer/composer#4714

@ericduran
Copy link

Came here to open this same issue, Need a way to update patches section only.

@hanoii
Copy link

hanoii commented Apr 6, 2017

Also interested in this, is there a workaround? I guess do nothing and still do composer install, that will add the patch, or is there another better way of coping with adding a patch without updating things?

@bradjones1
Copy link

I believe you should be able to update the patch and then composer update --lock which should just update the lockfile...

@hanoii
Copy link

hanoii commented Apr 6, 2017

That did it yes, interesting, I guess then this is a non-issue?

@cweagans
Copy link
Owner Author

cweagans commented Apr 6, 2017

This still needs done. composer update --lock only updates the hash in the lock file. The list of patches applied to a given package still needs to be updated, I think.

@hanoii
Copy link

hanoii commented Apr 6, 2017

I tried it and also updated the patch part of the lock file

@hanoii
Copy link

hanoii commented Apr 6, 2017

On my case it was a new patch added

@geek-merlin
Copy link

There is also composer update nothing. Dunno if this behaves different.

@joelpittet
Copy link

@axel-rutz composer/getcomposer.org#92 (comment) It looks to be an undocumented equivalent of composer update --lock

@Incognito
Copy link

I would find this feature useful.

@kweij
Copy link

kweij commented Dec 13, 2019

I agree with @cweagans that it would be nice to have a way to (re)apply (all) patches and update the lock file.

I'm sorry @bradjones1, but running composer update --lock does not seem to update patches_applied part of the lockfile.

@kweij
Copy link

kweij commented Dec 13, 2019

I was sooo wrong. Sorry @bradjones1, you're totally right

@cweagans
Copy link
Owner Author

cweagans commented Feb 7, 2023

main no longer uses composer.lock because it's not technically feasible. There is now a separate patches.lock, a command to update the lock file, and a command to re-patch stuff as necessary in your project.

@cweagans cweagans closed this as completed Feb 7, 2023
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

No branches or pull requests

9 participants