From b41c0a533142aae93ccfbbe9cff1f17206073b9f Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Sun, 3 Dec 2023 21:17:51 +1100 Subject: [PATCH] Add errtrace --- errtrace.hcl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 errtrace.hcl diff --git a/errtrace.hcl b/errtrace.hcl new file mode 100644 index 00000000..59fa8172 --- /dev/null +++ b/errtrace.hcl @@ -0,0 +1,23 @@ +description = "An alternative to stack traces for your Go errors" +binaries = ["errtrace"] +homepage = "https://github.com/bracesdev/errtrace" +source = "https://github.com/cashapp/hermit-build/releases/download/go-tools/errtrace-v${version}-${os}-${arch}.bz2" + +on "unpack" { + rename { + from = "${root}/errtrace-v${version}-${os}-${arch}" + to = "${root}/errtrace" + } +} + +version "0.2.0" { + auto-version { + github-release = "dmarkham/enumer" + } +} + +sha256sums = { + "https://github.com/cashapp/hermit-build/releases/download/go-tools/errtrace-v0.2.0-darwin-amd64.bz2": "cd0e8907fe95256f85e862ab64119abd71b5fa37ee5b31cb74a9527c0a1e547a", + "https://github.com/cashapp/hermit-build/releases/download/go-tools/errtrace-v0.2.0-darwin-arm64.bz2": "3da7be83f60d7d23a60d1c68e8317894ad34045f69c6097cd76bd5ff562fa760", + "https://github.com/cashapp/hermit-build/releases/download/go-tools/errtrace-v0.2.0-linux-amd64.bz2": "be6c4aa4db91eaeabae6ff4d1104f3cbc9ad33fafbb64b187ae6c8a275213a0b", +}