Answers.Body: <p>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.</p>
  
  <p>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.</p>
  
  <p>Would still like to hear if axing civicrm-cxm-rpc has wider effects than I'm inferring from the docs.</p>
  
  <p>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.</p>
  
  <p>This is running into several conflicts, and this time I <em>am</em> forking in github, because the above hack didn't work the second time through.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-12T17:15:47.487Z
Answers.Text: Wouldn't it affect your ability to upgrade to a newer version of civi?
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-13T00:37:21.520Z
Answers.Text: 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.
Answers.UserDisplayName: Jeff Porten
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-11T19:47:48.217Z
Answers.LastActivityDate: 2019-08-13T00:41:56.937Z
Answers.LastEditDate: 2019-08-13T00:41:56.937Z
Answers.UserDisplayName: Jeff Porten
Body: <p>Ubuntu 18.0.4 LTS, Drupal 8.7.</p>
  
  <p>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. </p>
  
  <p>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?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-12T17:19:01.413Z
Comments.Text: Adding link to https://civicrm.stackexchange.com/questions/31471/phpseclib-version
Comments.UserDisplayName: Demerit
Tags: <drupal><composer>
Title: Trying to kill civicrm/civicrm-cxm-rpc to fix a conflict, and it won't die
ThreadText: # Trying to kill civicrm/civicrm-cxm-rpc to fix a conflict, and it won't die
  
  (Asked by: username_0 on 2019-08-11)
  
  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?
  
  **Tags:** drupal, composer
  
  > **Comments:**
  > **username_1**: Adding link to https://civicrm.stackexchange.com/questions/31471/phpseclib-version  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-08-11. Score: 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.
  
  > **Comments:**
  > **username_1**: Wouldn't it affect your ability to upgrade to a newer version of civi?  
  > **username_0**: 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.  
  
  ---
  
  