Daniel Díaz Casanueva | 4 Jul 12:56 2013
Picon

Automatically test different versions of single dependency

Hello everyone.

I would like to check what dependencies is one of my packages compatible with. For example, say I have a package called "foo" that depends on package "bar". Most likely, "foo" does not build with each version of "bar". What I want to do is try to build "foo" with each single version of "bar" (not manually).

What is the best approach to this?
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Alp Mestanogullari | 4 Jul 14:36 2013
Picon

Re: Automatically test different versions of single dependency

You can just write a bash script that will do: 

    cabal install --constraint='bar == v'

for all the values of 'v' (0.1, 0.2, 1.2.5.1, ...) you are interested in. You can be aware of all the existing versions just using the directory listing in http://hackage.haskell.org/packages/archive/containers/ (for the 'containers' package in this case) or by using cabal-install cleverly maybe? 

I just saw 'cabal info containers' gives a list of available versions, up to a point... after which it says "(and 4 others)". So maybe go see how 'cabal info' does this? But all in all, this should give you enough to work out a nice solution.



On Thu, Jul 4, 2013 at 12:56 PM, Daniel Díaz Casanueva <dhelta.diaz <at> gmail.com> wrote:
Hello everyone.

I would like to check what dependencies is one of my packages compatible with. For example, say I have a package called "foo" that depends on package "bar". Most likely, "foo" does not build with each version of "bar". What I want to do is try to build "foo" with each single version of "bar" (not manually).

What is the best approach to this?

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe




--
Alp Mestanogullari
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Daniel Díaz Casanueva | 4 Jul 15:01 2013
Picon

Re: Automatically test different versions of single dependency

Hello, Alp.

Thank you for your response. Currently, I am extracting the information from the 00-index.tar.gz, and planning to use cabal-dev for the builds. Using the cabal tool directly looks like a very bad idea to me. I am still interested in knowing if there is some related job already done, or any other clever ideas that I didn't manage to think of. However, this looks like the best approach right now.

Thank you,
Daniel Díaz.


On Thu, Jul 4, 2013 at 2:36 PM, Alp Mestanogullari <alpmestan <at> gmail.com> wrote:
You can just write a bash script that will do: 

    cabal install --constraint='bar == v'

for all the values of 'v' (0.1, 0.2, 1.2.5.1, ...) you are interested in. You can be aware of all the existing versions just using the directory listing in http://hackage.haskell.org/packages/archive/containers/ (for the 'containers' package in this case) or by using cabal-install cleverly maybe? 

I just saw 'cabal info containers' gives a list of available versions, up to a point... after which it says "(and 4 others)". So maybe go see how 'cabal info' does this? But all in all, this should give you enough to work out a nice solution.



On Thu, Jul 4, 2013 at 12:56 PM, Daniel Díaz Casanueva <dhelta.diaz <at> gmail.com> wrote:
Hello everyone.

I would like to check what dependencies is one of my packages compatible with. For example, say I have a package called "foo" that depends on package "bar". Most likely, "foo" does not build with each version of "bar". What I want to do is try to build "foo" with each single version of "bar" (not manually).

What is the best approach to this?

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe




--
Alp Mestanogullari

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Alp Mestanogullari | 4 Jul 21:03 2013
Picon

Re: Automatically test different versions of single dependency

Yeah, I used the 00-index.tar.gz too, the directory listing did it for me (in scoutess). I was saying 'cabal' but cabal-dev works just fine for this too, it responds to the necessary commands too. Good luck :-)


On Thu, Jul 4, 2013 at 3:01 PM, Daniel Díaz Casanueva <dhelta.diaz <at> gmail.com> wrote:
Hello, Alp.

Thank you for your response. Currently, I am extracting the information from the 00-index.tar.gz, and planning to use cabal-dev for the builds. Using the cabal tool directly looks like a very bad idea to me. I am still interested in knowing if there is some related job already done, or any other clever ideas that I didn't manage to think of. However, this looks like the best approach right now.

Thank you,
Daniel Díaz.


On Thu, Jul 4, 2013 at 2:36 PM, Alp Mestanogullari <alpmestan <at> gmail.com> wrote:
You can just write a bash script that will do: 

    cabal install --constraint='bar == v'

for all the values of 'v' (0.1, 0.2, 1.2.5.1, ...) you are interested in. You can be aware of all the existing versions just using the directory listing in http://hackage.haskell.org/packages/archive/containers/ (for the 'containers' package in this case) or by using cabal-install cleverly maybe? 

I just saw 'cabal info containers' gives a list of available versions, up to a point... after which it says "(and 4 others)". So maybe go see how 'cabal info' does this? But all in all, this should give you enough to work out a nice solution.



On Thu, Jul 4, 2013 at 12:56 PM, Daniel Díaz Casanueva <dhelta.diaz <at> gmail.com> wrote:
Hello everyone.

I would like to check what dependencies is one of my packages compatible with. For example, say I have a package called "foo" that depends on package "bar". Most likely, "foo" does not build with each version of "bar". What I want to do is try to build "foo" with each single version of "bar" (not manually).

What is the best approach to this?

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe




--
Alp Mestanogullari




--
Alp Mestanogullari
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Gmane