0

Ubuntu 18.0.4 LTS, Drupal 8.7.

New to composer and Drupal 8, trying to resolve a conflict between required libraries for CiviCRM and Open Social. Open Social requires phpseclib/phpseclib 0.3 or 2^, CiviCRM requires 1.0.*. But the thing is, the bit of CiviCRM requiring that seems to be functionality I don't care about: civicrm/civicrm-cxm-rpc.

Have tried editing various JSON files, composer removes, and rm'ing the offending folder, but every time I try a new command I see it popping back up again and appearing in installed.json and lock files. How the hell do I forcibly remove it and manually install or require the 2.0?

1

1 Answer 1

1

Problem appears to have been a newbie-to-Composer issue. Every time I ran various composer commands, I'm told it overwrites the .json files I've been furiously editing for four hours, putting back all the code I'm trying to kill? Charming. Had no idea.

Was also told that the way to do this is to fork the project and point my top-level composer.json at it instead, then edit in the repo. That, however, requires learning eight skills I don't have yet—so I put in a quick-and-dirty hack: deleting the repositories lines from the top-level composer.json. That disconnected my local structure from the repo, and when I killed civicrm/civicrm-cxm-rpc again and required the google/apiclient that needed a newer phpseclib, it installed without a quibble.

Would still like to hear if axing civicrm-cxm-rpc has wider effects than I'm inferring from the docs.

EDIT TO ADD: Installing Open Social over the composer package of Drupal 8/CiviCRM died screaming in ways I didn't understand, so I'm now trying the reverse: using the distro of Drupal 8 and Open Social and patching it with CiviCRM, since dsnopek has a composer script that does only that.

This is running into several conflicts, and this time I am forking in github, because the above hack didn't work the second time through.

2
  • Wouldn't it affect your ability to upgrade to a newer version of civi?
    – Demerit
    Commented Aug 12, 2019 at 17:15
  • This thing is supposed to stage on Friday. For now, I'm happy to bang on it with a hammer, and come back to longer term issues after it's been reviewed. Commented Aug 13, 2019 at 0:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.