I’m having trouble setting this up, I’ve read @swalkinshaw posts and a few other discourse posts but I keep getting errors and feel like I’m missing a trick.
I have downloaded gravityforms plugin and created a bitbucket private repo… Git not Mercurial as I don’t really know the difference.
in my composer.json
file under “repositories” I have:
{
"type": "package",
"package": {
"name": "accountname/gravityforms",
"type": "wordpress-plugin",
"version": "master",
"dist": {
"type": "vcs",
"url": "git@bitbucket.org/accountname/gravityforms.git"
},
"require" : {
"composer/installers": "*"
}
}
}
and in require
I have: "accountname/gravityforms":"dev-master"
I also have a composer.jso
n file in my bitbucket repo but I’m not too clear on whether this is needed or not? The code in this file is the same as under “repositories” above. I think I might be getting a bit confused here.
My current error when I run composer update
is:
[InvalidArgumentException]
Unknown downloader type: vcs. Available types: git, svn, hg, perforce, zip, rar, tar, gzip, ph
ar, file.
But to be honest, I’ve tried loads of different things and get different errors whatever I try. If someone could help point me in the right direction, or post a really simple “just do this = a, b, c”, to get this working I’d really appreciate it!