Jump to content

Topic on Skin talk:Poncho/Flow

Installing Poncho with Composer

2
Kimmywingz (talkcontribs)

Hello,

We use docker/compose for our Mediawiki. I have brought in extensions through our composer.json file, and now I am trying to bring in this skin.

Under "require"

"mediawiki/poncho": "13.8"

Under "repositories"

"type": "package",
"package": {
    "name": "mediawiki/poncho",
    "version": "13.8",
    "source": {
        "url": "https://gerrit.wikimedia.org/r/mediawiki/skins/Poncho",
        "type": "git",
        "reference": "master"
    }
}

under merge-plugin "include"

"skins/Poncho/composer.json"

I have also tried poncho-skin rather than poncho and skins vs mediawiki for the name under require and repositories. Running composer update updates the lock file appropriately, the folder is created in my local environment, however when I push to staging the folder is not appearing. I have not brought in a skin this way and any insight anybody can offer would be greatly appreciated. Thank you for your time and expertise.

Sophivorus (talkcontribs)

Hi! Poncho is not currently available on Packagist and I'm unlikely to add it because I'm unlikely to continue developing the skin. I reproduced your config in composer.local.json and was able to reproduce the issue, but I don't know enough about composer to fix it, sorry. For future reference, my composer.local.json looked like this:

{
    "require": {
	    "mediawiki/poncho": "14.0"
	},
	"repositories": [
        {
            "type": "package",
            "package": {
                "name": "mediawiki/poncho",
                "version": "14.0",
                "source": {
                    "url": "https://gerrit.wikimedia.org/r/mediawiki/skins/Poncho",
                    "type": "git",
                    "reference": "master"
                }
            }
        }
    ],
    "extra": {
        "merge-plugin": {
            "include": [
                "skins/Poncho/composer.json"
            ]
        }
    }
}