Skip to content
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

Does not change from vendor/ to type:wordpress-plugin path #536

Open
strarsis opened this issue Jul 31, 2024 · 0 comments
Open

Does not change from vendor/ to type:wordpress-plugin path #536

strarsis opened this issue Jul 31, 2024 · 0 comments

Comments

@strarsis
Copy link

strarsis commented Jul 31, 2024

  "require": {
    "composer/installers": "^2.2",
    "benbodhi/svg-support": "2.5.6",
  },

  "repositories": {
    "wpackagist": {
      "type": "composer",
      "url": "https://wpackagist.org",
      "only": [
        "wpackagist-plugin/*",
        "wpackagist-theme/*"
      ]
    },

    "svg-support-repository": {
      "type": "package",
      "package": {
        "name": "benbodhi/svg-support",
        "type": "wordpress-plugin",
        "version": "2.5.6",
        "source": {
          "url": "https://plugins.svn.wordpress.org/svg-support/",
          "type": "svn",
          "reference": "tags/2.5.6"
        }
      }
    }
  },

  "extra": {
    "installer-paths": {
      "web/app/plugins/{$name}/": [
        "type:wordpress-plugin"
      ]
    }
  },

When "type": "wordpress-plugin" was missing on a previous composer update run, the plugin files end up in vendor/.
After "type": "wordpress-plugin" was added, and composer update ran again, the
plugin files will be still in vendor/ and missing in web/app/plugins/svg-support.
Only a manual fix/workaround, by removing the directory in vendor/ and re-running composer update
lets composer update; composer install put the plugin files into web/app/plugins/svg-support/ directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant