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

Skip symlinked vendor packages when updating #3254

Closed
noccy80 opened this Issue Sep 2, 2014 · 5 comments

Comments

Projects
None yet
5 participants
@noccy80

noccy80 commented Sep 2, 2014

To avoid cluttering my git repositories with lots of small changes, I often symlink libraries into the vendors directory of the app that uses them while I'm working on both. This causes problems when doing a composer update. It would be great if composer was aware of this, and could take the appropriate action:

  • Without --force just print out "ignoring symlinked package foo/bar..."
  • With --force, unlink the symlink and install the package fresh
@mikedfunk

This comment has been minimized.

mikedfunk commented Nov 1, 2014

👍

@white-gecko

This comment has been minimized.

white-gecko commented Nov 28, 2014

I think this issue is a duplicate of #601 and the whole topic is also partially mentioned in #2171

@Seldaek

This comment has been minimized.

Member

Seldaek commented Sep 22, 2015

The new path repository (https://getcomposer.org/doc/05-repositories.md#path) lets you do this cleaner now.

@Seldaek Seldaek closed this Sep 22, 2015

@dantleech

This comment has been minimized.

dantleech commented May 31, 2016

This would still be good imo.

I often work on a project and its multiple dependencies simultaneously - and those dependencies are projects in their own right in their own workspaces. So duplicating them and working in vendor is just somewhat confusing/frustrating - as I am then working on the same project in two different places. Hence I prefer to symlink.

@Seldaek

This comment has been minimized.

Member

Seldaek commented May 31, 2016

@dantleech there is the path repo or https://github.com/franzliedke/studio that can do it cleanly, I'm not really willing to add dirty hacks like ignoring all symlinks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment