tools-build

lread 2022-02-11T19:19:20.909119Z

Am I right in that https://clojure.github.io/tools.build/clojure.tools.build.api.html#var-git-process doesnโ€™t support failing on non-zero git exit codes? Or have I not had enough coffee yet?

๐Ÿ™ 1
lread 2022-02-11T19:26:26.236669Z

Cool, thanks @seancorfield.

seancorfield 2022-02-11T19:26:42.648889Z

The underlying process function doesn't "fail", it just returns status/output stuff.

lread 2022-02-11T19:30:47.622669Z

Yeah, thatโ€™s all fine. It just surprised me a bit that I could not even check the git exit code. Easy enough to do my own thing tho.

Alex Miller (Clojure team) 2022-02-11T19:34:44.576859Z

What problem are you trying to solve?

lread 2022-02-11T19:35:45.795839Z

Failing my build if a git command fails for whatever reason.

lread 2022-02-11T19:36:39.319999Z

(including stupid human errors)

seancorfield 2022-02-11T19:37:27.906569Z

You could use the raw process function and throw on :exit being non-zero.

lread 2022-02-11T19:39:45.075669Z

Yeah thanks, am doing my own thing now. Just thought maybe git-process could use tweak. But am totally fine with not using it too.

lread 2022-02-11T20:10:45.001379Z

(in other words, was trying to be helpful in confirming/highlighting a potential issue, aim was not to be complainy ๐Ÿ˜‡).

Alex Miller (Clojure team) 2022-02-11T20:13:04.958409Z

yep, thanks! maybe we could throw on non-0 exit

๐Ÿ’ฏ 1
๐Ÿ™ 1