Hi Mathieu, Mathieu Othacehe <m.othac...@gmail.com> skribis:
> Now that Cuirass uses (guix git), I'm trying to robustify specification > evaluation. Currently Cuirass calls a binary called "evaluate" to get a > job list from a specification. > > I don't like the idea of this extra "evaluate" script because : > > * We have to give evaluate almost all arguments given to Cuirass > (load-path, package-path, cachedir, spec, database). > * The script is made available for the user but it's very unclear how to > call it. The help says : "Usage evaluate FILE" which is wrong (5 > arguments are expected). > > So my question is, is this a strong requirement to have a separate > script to parse specification, or can I put this stuff back in main > Cuirass program ? It’s a requirement because the evaluation process has side effects on the Guile that runs it; for instance, it loads tons of modules in it. Also, the evaluation process may need to load modules that have the same name as currently-loaded modules, but different content—and Guile supports only one module with a given name. That said, this program should be moved to $libexecdir/cuirass/VERSION. HTH, Ludo’.