SemanticMediaWiki / SemanticApprovedRevs

Complementary extension to Semantic MediaWiki and Approved Revs to control the storage of approved revision content
Other
4 stars 3 forks source link

Composer Installation seems to be broken #22

Closed AID-PMBD closed 3 years ago

AID-PMBD commented 3 years ago

Setup and configuration

Issue

When trying to install the extension via composer, as specified in the documentation a error message is shown and the Installation doesn't take place.

composer.local.json entry:

"mediawiki/semantic-approved-revs": "~1.0"

Composer install command:

php composer.phar update --no-dev --prefer-source

Error Message:

Your requirements could not be resolved to an installable set of packages.

Problem 1 - The requested package mediawiki/semantic-approved-revs[dev-master, 0.1.x-dev] could not be found, it looks like its name is invalid, "[, ]" is not allowed in package names.

Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details. - It's a private package and you forgot to add a custom repository to find it

kghbln commented 3 years ago

I have a similar issue https://github.com/SemanticMediaWiki/semantic-mediawiki.org/issues/87 There is indeed something it the water. Did not dig into it though.

AID-PMBD commented 3 years ago

Are there alternative instruction for installation? I guess just downloading the extension files into the extension directory won't work.

kghbln commented 3 years ago

No, I am afraid not.

gesinn-it-gea commented 3 years ago

There are no tags (releases) yet. Try to use dev-master.

Your composer.local.json's require section should look like this:

{
    "require": {
        "mediawiki/semantic-approved-revs": "dev-master",
    }
}
gesinn-it-gea commented 3 years ago

See also https://github.com/SemanticMediaWiki/SemanticApprovedRevs/issues/3#issuecomment-614990319

kghbln commented 3 years ago

Ah, I did not realize that there is no tag yet. So my issue is different since dev-master cannot be installed.

AID-PMBD commented 3 years ago

Thank you, this worked well for me.