Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to add a new package and update .lock file#2046

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 2 commits intosymfony:2.1fromgajdaw:update-2.1
Dec 19, 2012
Merged

How to add a new package and update .lock file#2046

weaverryan merged 2 commits intosymfony:2.1fromgajdaw:update-2.1
Dec 19, 2012

Conversation

@gajdaw
Copy link
Contributor

Command:

composer update

very often causes problems. I think we should add a hint to update only a new package.

Copy link
Member

Choose a reason for hiding this comment

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

Typo here: cofmposer should be composer.

And I like using therequire command for this:

$ php composer.phar require doctrine/doctrine-fixtures-bundle:@dev

This will update this dependency and add it to the list of requirements in thecomposer.json file (as well in thecomposer.lock file)

Copy link
Member

Choose a reason for hiding this comment

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

And actually, it does exactly the 2 steps defined here (plus some validation on what you write in the requirement)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Many bundles and packages suggest modification ofcomposer.json and:

composer update

My intention was to give a hint, that one should avoid updating everything.

The method:

php composer.phar require doctrine/doctrine-fixtures-bundle:@dev

is simpler.

Copy link
Member

Choose a reason for hiding this comment

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

@gajdaw I think it is better to say 'Hey, they say you need to do it that way, but that can cause problems, this is much easier'.

weaverryan added a commit that referenced this pull requestDec 19, 2012
How to add a new package and update .lock file
@weaverryanweaverryan merged commit54f8557 intosymfony:2.1Dec 19, 2012
weaverryan added a commit that referenced this pull requestDec 19, 2012
@weaverryan
Copy link
Member

Hey Włodzimierz!

This is a great addition to this note, and a common-enough need that I like mentioning it (even if it is a Composer things).

Thanks!

@gajdawgajdaw deleted the update-2.1 branchDecember 19, 2012 17:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@gajdaw@weaverryan@stof@wouterj

[8]ページ先頭

©2009-2025 Movatter.jp