Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer Installation seems to be broken #22

Closed
AID-PMBD opened this issue Oct 20, 2021 · 7 comments
Closed

Composer Installation seems to be broken #22

AID-PMBD opened this issue Oct 20, 2021 · 7 comments

Comments

@AID-PMBD
Copy link

AID-PMBD commented Oct 20, 2021

Setup and configuration

  • SMW version: 3.2.3
  • SAR version: 1.0
  • MW version: 1.35
  • DB (MySQL etc.): 8.0.26

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
Copy link
Member

kghbln commented Oct 20, 2021

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

@AID-PMBD
Copy link
Author

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

@kghbln
Copy link
Member

kghbln commented Oct 20, 2021

No, I am afraid not.

@gesinn-it-gea
Copy link
Member

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
Copy link
Member

See also #3 (comment)

@kghbln
Copy link
Member

kghbln commented Oct 20, 2021

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

@AID-PMBD
Copy link
Author

Thank you, this worked well for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants