contao-community-alliance / composer-plugin

Composer plugin that provide contao integration and installer.
GNU Lesser General Public License v3.0
7 stars 10 forks source link

Write journal file #25

Closed tristanlins closed 7 years ago

tristanlins commented 10 years ago

The plugin log the activities into a separate journal.json:

{
    "vendor/name": [
        { "type": "install",   "version": "1.0",                            "date": "2014-10-13T14:56:00+02:00" },
        { "type": "update",    "version": "1.1", "previous-version": "1.0", "date": "2014-10-13T14:56:00+02:00" },
        { "type": "uninstall", "version": "1.1",                            "date": "2014-10-13T14:56:00+02:00" }
    ]
}

This could be done through the post install, post update and post uninstall events.

See my comment here: https://github.com/contao-community-alliance/composer-client/issues/200#issuecomment-58889041

discordier commented 10 years ago

Keep in mind that this will only work for packages being handled after the plugin itself is active.

On a fresh install, there might be some packages (other plugins i.e.) being pulled before the plugin is activated.

tristanlins commented 10 years ago

I hope that https://github.com/composer/composer/pull/3082 will be merged before ;-) But you're right, the initial installation may not tracked completely.

francoispluchino commented 10 years ago

@tristanlins This PR will not solve the problem mentioned by @discordier.

discordier commented 7 years ago

Will not implement, it simply is not working and not worth the hassle