Topic on Extension talk:Semantic Glossary

Making it installable with SMW 2.x

10
Kghbln (talkcontribs)

Heiya, currently even master of this extension is not installable via Composer when trying to update to SMW 2.x since it requires SMW 1.9.x as Composer prompts:

mediawiki/semantic-glossary dev-master requires mediawiki/semantic-media-wiki ~1.9

Cheers

F.trott (talkcontribs)

Should work now.

Cheers

Kghbln (talkcontribs)

Thanks for trying to fix this, however it still does not work. :(

When having "mediawiki/semantic-glossary": "@dev", I get this:

Problem 1
 - mediawiki/semantic-glossary dev-master requires mediawiki/semantic-media-wiki ~1.9, ~2.0 -> no matching package found.
 - mediawiki/semantic-glossary dev-REL1_23 requires mediawiki/semantic-media-wiki ~1.9 -> no matching package found.
 - mediawiki/semantic-glossary 1.0.0 requires mediawiki/semantic-media-wiki ~1.9 -> no matching package found.
 - Installation request for mediawiki/semantic-glossary @dev -> satisfiable by mediawiki/semantic-glossary[1.0.0, dev-REL1_23, dev-master].

When adding "mediawiki/semantic-glossary": "dev-master", it looks a bit better:

Problem 1
 - Installation request for mediawiki/semantic-glossary dev-master -> satisfiable by mediawiki/semantic-glossary[dev-master].
 - mediawiki/semantic-glossary dev-master requires mediawiki/semantic-media-wiki ~1.9, ~2.0 -> no matching package found.

So it seems that commaseparating different branches does not work. Minimum stability is at "dev" in the "composer.json".

Kghbln (talkcontribs)

Perhaps it does not work since SMW 2.x is still a RC and not officially released with a 2.0?

F.trott (talkcontribs)

Sorry, my fault. Comma means AND. Inserted a pipe now, which should mean OR.

Kghbln (talkcontribs)

Talk about finding the solution at the same time. Yeah, as a MediaWikian I would say: Do the pipe trick, but here it is not a trick. ;) Thanks, this worked with "@dev" as well as with "dev-master"!

Kghbln (talkcontribs)

I have just seen how Jeroen has done this for SESP. See here on GitHub

"require": {
	"php": ">=5.3.0",
	"composer/installers": "1.*,>=1.0.1",
	"mediawiki/semantic-media-wiki": "1.9.*|~2.0"
},
Kghbln (talkcontribs)

Another way I have seen is "mediawiki/semantic-media-wiki": ">=1.9" That's probably the solution if one does not like to revisit the dependency stuff every time a new branch is available.

F.trott (talkcontribs)

I think it is a rather hacky solution. It includes all versions above 1.9 not taking care of any possible API changes in higher versions of SMW. The whole point of dependency management is to make sure only compatible versions are combined, which this rule will disable. See .

Kghbln (talkcontribs)

Indeed this reinstates the situation ante (without Composer).

Reply to "Making it installable with SMW 2.x"