craftsmancoding / repoman

Repoman allows for easy package development in MODX Revolution. Take back the simplicity!
30 stars 7 forks source link

Installing some packages via Repoman calculates wrong asset_path #20

Closed fireproofsocks closed 10 years ago

fireproofsocks commented 10 years ago

Specifically on Moxycart and AssetManager, when I install a repo, e.g. from assets/repos/ it actually ends up installing to assets/assets/repos/

fireproofsocks commented 10 years ago

This is caused by the default settings used by the "Filesystem" Media Source. The path is prefixed with the Filesystem basePath from the Media Source.

fireproofsocks commented 10 years ago

The solution:

  1. Added a new Media Source in Repoman's seed data (build_attributes included in composer.json)
  2. Reference this new Media Source when creating static elements.

31d3161..4b139ac master -> master