-
Notifications
You must be signed in to change notification settings - Fork 112
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
CRM-17652: Make civicrm-packages into a composer library #193
Conversation
{ | ||
"name": "civicrm/civicrm-packages", | ||
"description": "Legacy third party dependencies for CiviCRM", | ||
"type": "library" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dsnopek will we want a mention of composer-installers here given we will need to customise it goes in the civicrm/ folder within library and also shouldn't we have require: { civicrm/civicrm: xxx } ?
@seamuslee001 What I was imagining is that FYI, this bit was based on the plan posted by @totten at https://gist.github.com/totten/0c1a01840ccc13388dbf252f5f9d4893 and it would allow us to drop another line from the process we're trying to eliminate at https://gist.github.com/dsnopek/56311dbea347874e75180883efabb620 |
Yeah, this'll be necessary to eliminate the step from the "temporary" process that copies the packages over. |
So the big problem that to me seems to need to be solved is getting this installed in the right folder. I noticed that Tim's gist is still suggesting it is in the packages folder as a sub folder of civicrm. I'm not sure how to solve this when all other (D7, wordpress, D6 (even still), Joomla) will all still be presuming its in civicrm/packages. I support this and likewise the civicrm-drupal PR. My impression of this would mean at the present moment it would fall in /packages not in /civicrm/packages or is there something else going on? @dsnopek i agree now with not needing the require here got myself in muddle |
|
Conceptually, I think the "right" folder is If it's possible to move that and adjust the paths used in civicrm-core without breaking backcompat in some way, I think we should have this install under If not, well, we can use composer-installers to put it in the old location. But that's something we'd do in the composer.json that depends on this repo (ie. in |
Yeh true, in regards to the packages things, So the biggest stuff looking at is CRM/Core/Respources CRM/Core/Smarty and then of course CRM/Core/ClassLoader There are a number of other places including in status checks and also in upgrade (checking certain files are removed etc etc) However as far as i can tell all the code is thinking is stuff is either loaded from civicrm/vendor or civicrm/packages (or in d8 the vendor dir straight). So with packages i think if we kept it the same as Tim thinking Agree with your comments about having it in vendor. I.e.. looking at stuff like
its look for civicrm/packages so in theory it doesn't matter wherever you put civicrm as long as there is a packages subfolder code should still work. @totten i don't see an issue with merging this in its current form |
Jenkins test this please |
As mentioned in the JIRA thread, I flipped from my earlier position -- the |
Ah, awesome, thanks! One less thing :-) |
This one needs to be merged before civicrm/civicrm-core#10694 can use composer to pull in civicrm-packages and have it actually work (ie. pass tests)