To all the PHP developers who use Fossil, here is something that might
be useful to you: support for Fossil repositories in Composer.

I personally don't like Composer: it is intrusive, it might run shell
scripts on package install, its packages are not signed and can not be
trusted, it is quite slow and adds more complexity and magic on top of
things.

But when you have to use it well you want to be able to include your
favorite Fossil repositories. And that's what I coded last week.

You can find the patched version of Composer here:
https://github.com/bohwaz/composer/tree/fossil

And the pull request that will hopefully be merged in the main Composer
is here: https://github.com/composer/composer/pull/5467

This is part of my ongoing effort to see more developer tools support
Fossil, the last one was a SublimeText plugin to see realtime diff
against current checkout in the editor[1], and I will now look at other
stuff that need Fossil support.

Please note that for your remote repository to be recognized by Composer
it has to be on DNS that begins with "fossil." or the URL has to begin
with "/fossil/" (or it has to be on ChiselApp). There is no such
restriction on local repository checkouts, as long as they contain
the .fslckout or _FOSSIL_ file.

This is because Composer has only one "vcs" repository type, and not a
"git" or "fossil" or "hg" repository type, so it has to magically
detect what kind of repo it is, and for remote repositories there is
not a lot of ways to do that.

I hope this will be useful.

Cheers,

-- bohwaz

[1] https://github.com/bradsokol/VcsGutter/pull/36
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to