You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shouldn't it exit with 1 or another non-zero value so that one doesn't have to rely on parsing the message in order to find out what freight-add actually did?
I understand that the end result of running freight-add is always that a package is present in the library (i.e. /var/lib/freight) but when scripting a package deployment process it'd be nice to be able to easily fail when the script tries to add a package that already exists.
The text was updated successfully, but these errors were encountered:
Freight's current behavior is what I would expect... My build scripts don't check to see if packages already exist before trying to add them. It's not an erroneous condition in my case.
@antaflos curious, why do you want dupes to be a fatal error?
Running
freight-add
on a package that already exists in the library exits with an informative (error?) message but with exit code 0:Shouldn't it exit with 1 or another non-zero value so that one doesn't have to rely on parsing the message in order to find out what
freight-add
actually did?I understand that the end result of running
freight-add
is always that a package is present in the library (i.e./var/lib/freight
) but when scripting a package deployment process it'd be nice to be able to easily fail when the script tries to add a package that already exists.The text was updated successfully, but these errors were encountered: