Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save manoj-apare/468a106c51f27b80462ea52fa3135c52 to your computer and use it in GitHub Desktop.
Save manoj-apare/468a106c51f27b80462ea52fa3135c52 to your computer and use it in GitHub Desktop.
Problem:
When I was trying to setup commerce 2.x in Drupal 8 using Acquia cloud. Faced an issue while enabling Address module.
Error I was getting is `Address requires the commerceguys/zone library.`.
But, when I checked vendor directory, in commerceguys libraries only zone is missing in Acquia cloud,
but the same is present in my local instance.
Solution:
Commerceguys zone library is installed from git repo, so it was having `.git/`.
In Acquia cloud sub respository won't be supported.
So what I did id deleted that .git inside zone directry and pushed the same to cloud.
@manoj-apare
Copy link
Author

Alternate solution:
Add this to Drupal 8 composer.json:
composer-scripts

Then whenever libraries is been updated we can run composer remove-git-submodules similar to composer drupal-update to remove .git sub repositories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment