webignition / robots-txt-file

Models a robots.txt file
MIT License
18 stars 3 forks source link

Composer Install Failing #1

Closed mipaca closed 10 years ago

mipaca commented 10 years ago

When I add "webignition/robots-txt-file": "*" to my composer file and then run composer update I receive the following error. Problem 1

This causes an error with installing the robots txt parser because it can't find the matching package. Problem 2

webignition commented 10 years ago

Interesting, taking a look now to see how I'm using it ...

webignition commented 10 years ago

Can't see why that is happening, webignition/robots-txt-file has no dependencies.

Can you share your composer.json or link to a public repo where it can be found?

webignition commented 10 years ago

Ah, just realised that you're using "webignition/robots-txt-file": "*". I think that will get the latest release.

There are no releases of this library so that would probably fail (I'm no composer expert).

Have you tried using "webignition/robots-txt-file": "dev-master"?

That's what I do when using webignition/robots-txt-file in webignition/robots-txt-parser and that works just fine: https://github.com/webignition/robots-txt-parser/blob/master/composer.json

mipaca commented 10 years ago

Using "webignition/robots-txt-file": "dev-master" worked. Maybe update the ReadMe so that it says dev-master instead of the asterisk. Thanks for looking at it so quickly.

webignition commented 10 years ago

Yep, will do.

I think the docs as they are may well have worked a very long time ago when composer was still much newer.