bradp / vv

:globe_with_meridians: Variable VVV - a VVV Site Creation Wizard.‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ :x: This project is no longer maintained. Please update your copy of VVV , which has most of the vv features built in.
GNU General Public License v2.0
1k stars 89 forks source link

Bitbucket .git File/Plugin Not Activating #296

Open jsulz opened 8 years ago

jsulz commented 8 years ago

Hi there!

Great work on this - for the most part it works as expected. However, when I try to grab a repository from Bitbucket (theme or plugin, doesn't matter) using a vv-blueprint.json file I end up with some problems.

Here is the vv-blueprint.json file in its entirety (which is essentially a straight c&p from the README.md with a few minor tweaks) with the issue arising from the repo listed in the first object in the plugins array

{
  "sample": {
    "sample::subdomains": "site2 site3",
    "sites": {
      "site2": {
        "title": "Child Site (subsite2)",
        "plugins": [
          {
            "location": "buddypress",
            "activate": true
          }
        ]
      },
      "site3": {
        "title": "Private Child Site",
        "private": true,
        "email": "site2admin@local.dev",
        "themes": [
          {
            "location": "https://github.com/glocalcoop/anp-network-main-child/archive/master.zip",
            "activate": true
          }
        ]
      }
    },
    "themes": [
      {
        "location": "automattic/_s",
        "enable_network": true
      },
      {
        "location": "glocalcoop/anp-network-main-v2",
        "activate": true
      }
    ],
    "mu_plugins": [
      {
        "location": "https://github.com/WebDevStudios/WDS-Required-Plugins.git"
      }
    ],
    "plugins": [
      {
        "location": "https://user@bitbucket.org/team/repo.git",
        "version": null,
        "force": false,
        "activate": true,
        "activate_network": true
      },
      {
        "location": "wordpress-seo",
        "version": "3.3.1",
        "force": false,
        "activate": true,
        "activate_network": false
      }
    ],
    "demo_content": [
      "link::https://raw.githubusercontent.com/manovotny/wptest/master/wptest.xml"
    ],
    "defines": [
      "WP_CACHE::false"
    ]
  }
}

And here is the command I'm passing in my console:

vv create --blueprint sample --multisite subdomain

This seems to be closely related to the issue arising in #172 and I see that it's closed out, but don't see what the final resolution was. The error that I get when in the console is:

==> default:   Installing https://user@bitbucket.org/team/repo.git --activate --activate-network...
==> default: error: unknown option `activate'
==> default: usage: git clone [<options>] [--] <repo> [<dir>]

I should note that if I pass "activate" : false and "activate_network" : false instead, then it works just swimmingly. The plugin is cloned from the repo and we can go on our merry way.

There seems to be no difference in result if I use SSH instead of HTTPS for the "location" param.

Let me know if I can send anything else your way for context!