Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Libs in an application, without editing the application.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Christophe COEVOET  
View profile  
 More options Sep 21 2012, 12:25 pm
From: Christophe COEVOET <s...@notk.org>
Date: Fri, 21 Sep 2012 18:25:21 +0200
Local: Fri, Sep 21 2012 12:25 pm
Subject: Re: [composer-dev] Libs in an application, without editing the application.
Le 21/09/2012 18:05, Michael C (UKB) a crit :
> In the development community we are all easily competent enough to
> upgrade by the mix of using update db scripts, and applying diffs etc.
> Then manually specifying and extra plugins/deps in the
> composer.json. However the wider public aren't quite so competent. As
> such scripts such as phpBB use update scripts which apply the diffs
> and database updates. The problem is that these scripts are used as
> applications, not libs (like they would be when used by the
> development community).

> These scripts quite often have extra plugins/extensions/styles etc.
> that are installed. Composer could make installing plugins so much
> easier, however the problem we come across is how to manage those
> plugins. To add them having to edit the composer.json and then update
> the composer.lock is fine (although something db based would be
> more preferable as you cant always edit the file), except when it
> comes to updating. If we update the deps in the application, then part
> of the diff will be the changes to the composer.json & composer.lock.
> This will then conflict if any plugins have been installed on lines
> such as the hash which could confuse some end users and they won't
> know how to handle it.

> As such a cleaner solution would be to either allow having a second
> composer.json (called custom_libs.json or similar) which can handle
> the plugins. Then have a separate custom_libs.lock file for the
> plugins. However this creates a problem as it means a plugin cannot
> require certain versions of the application.

> Another solution could be the ability to handle requirements through
> two tables in a database (one holding the repos as they would be in
> the .json, the other being as it would be in the .lock) in addition to
> a composer.json/composer.lock which will manage any settings (minimum
> stability etc.) as well as any deps if they choose to have it there.
> Having the login information in a composer_login.json including the
> login information.

> Thoughts?

phpBB could use composer as a library (meaning having some dependency to
the composer code in the plugin manager), storing the metadata about
what is installed and required in a database if it wants. It does not
necessarely need to run composer as the CLI tool reading a composer.json
file in the project.

--
Christophe | Stof


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.