shedd / duckpan-vagrant

Vagrant + Chef virtual development environment for DuckDuckGo (http://duckduckhack.com)
Apache License 2.0
5 stars 5 forks source link

Perl dependency handling #2

Closed shedd closed 10 years ago

shedd commented 10 years ago

The DuckDuckGo repos have dependencies compiled in dist.ini - I'm somewhat unfamiliar with Perl dependency management techniques, but this seems to be used for http://dzil.org

However, the DuckPAN installation doesn't seem to use this information to ensure dependencies are installed. When I sync one of the DDG zeroclickinfo repos into the Vagrant box (I tested zeroclickinfo-spice and zeroclickinfo-goodies so far), I hit Perl dependency issues that I need to resolve manually.

Seems like there should be a better way!

shedd commented 10 years ago

I came across Carton - https://github.com/miyagawa/carton - (seems to be Bundler for Perl). Might be something to look at in this context?

vasanthela commented 10 years ago

The documentation doesn't make this intuitive and I got stuck at this part too. But you basically need to run duckpan installdeps inside of a cloned zeroclickinfo repo.

For example

git clone https://github.com/duckduckgo/zeroclickinfo-spice.git

cd zeroclickinfo-spice

duckpan installdeps      # Installed Text-Trim dependency

duckpan server --verbose # Runs a duck duck go server on localhost:5000
shedd commented 10 years ago

Thanks @vasanthelavarasan - that's definitely the preferred solution.

Just pushed a change to implement this