Skip to content

Forced Update #202

@kazajhodo

Description

@kazajhodo

The plugin is forcing a 'composer update' run, in order to match up the json/lock files.

I realize why, but in very low situations should anyone want to ever actually run an update on their build. This is way too opinionated. Its forcing me to maintain a fork- I wouldn't be surprised if most of the forks were doing similar things.

As the comment mentions- it should be a message vs an action.

We can very easily run 'composer u nothing', or some of the other variants that update the lockfile only.

I'm not sure if this will work, but I see within MergePlugin.php that you are setting options on the $installer object- such as the --prefer-source option with $installer->setPreferSource(). The update command has a '--lock' option, which is likely also available on the $installer... maybe setLock()? I haven't looked.

I'm betting you could set that before you trigger the $installer->setUpdate(true);, which would alleviate the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions