I'm using Amazon S3 to version some of my premium WordPress plugins.
I require them using Composer, but I'm getting a warning Key type is a duplicate in ./composer.json at line XX
.
This is the repository part of my composer.json
. I've tried a few different versions already but I'm not sure what to replace packages
with instead. The dependencies are downloading fine, but I like to get rid of this error as the deployment pipeline is suffering when it's checking for issues.
"repositories": [{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "composer",
"url": "https://composer.deliciousbrains.com/xxx"
},
{
"type": "package",
"package": {
"name": "xxx",
"version": "2.6.1",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://xxx.s3.amazonaws.com/xxx/xxx_2.6.1.zip"
}
},
"type": "package",
"package": {
"name": "xxx",
"version": "2.0.1",
"type": "wordpress-theme",
"dist": {
"type": "zip",
"url": "https://xxx.s3.amazonaws.com/xxx/xxx.zip"
}
}
}
]