tools-build 2022-02-11

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

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

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?

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

(including stupid human errors)

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

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.

(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