[racket-dev] raco pkg dependency checks and exit code

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Thu Oct 3 08:45:12 EDT 2013

On Wed, Oct 2, 2013 at 3:54 PM, Asumu Takikawa <asumu at ccs.neu.edu> wrote:
> Hi all,
>
> I noticed that if you don't specify any dependencies for a package, then
> `raco` will warn you about that.  However, the exit code is 0 and it's
> not an "error".
>
> Comparatively, if you supply a dependencies field of `empty`, then you
> will get a bunch of errors about undeclared dependencies and the exit
> code is 1.
>
> Is there a reason why these two cases are treated differently?

In the first case, you are forgetting to do it and we warn to tell you
what you should put. In the second case, you put them in but are wrong
and should be CAUGHT and PUNISHED. I think that's the logic behind it.

Jay

>
> Cheers,
> Asumu
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93

Posted on the dev mailing list.