From 89bcf4c29fc6f5821afe4f4589b93136716d30d0 Mon Sep 17 00:00:00 2001 From: icp Date: Mon, 11 Sep 2023 13:13:07 +0530 Subject: [PATCH] sq: update to 0.42.1. --- srcpkgs/sq/patches/32-bit.patch | 11 ----------- srcpkgs/sq/template | 10 +++++++--- 2 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 srcpkgs/sq/patches/32-bit.patch diff --git a/srcpkgs/sq/patches/32-bit.patch b/srcpkgs/sq/patches/32-bit.patch deleted file mode 100644 index ea4c868ece3b4..0000000000000 --- a/srcpkgs/sq/patches/32-bit.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/libsq/ast/render/range.go -+++ b/libsq/ast/render/range.go -@@ -27,7 +27,7 @@ - if rr.Limit == -1 { - // MySQL requires a LIMIT if OFFSET is used. Therefore - // we make the LIMIT a very large number -- limit = fmt.Sprintf("LIMIT %d", math.MaxInt64) -+ limit = fmt.Sprintf("LIMIT %d", uint64(math.MaxInt64)) - } - } - diff --git a/srcpkgs/sq/template b/srcpkgs/sq/template index 736291540fa14..e926749e4015a 100644 --- a/srcpkgs/sq/template +++ b/srcpkgs/sq/template @@ -1,6 +1,6 @@ # Template file for 'sq' pkgname=sq -version=0.42.0 +version=0.42.1 revision=1 build_style=go go_import_path="github.com/neilotoole/sq" @@ -14,14 +14,18 @@ homepage="https://sq.io" changelog="https://raw.githubusercontent.com/neilotoole/sq/master/CHANGELOG.md" distfiles="https://github.com/neilotoole/sq/archive/refs/tags/v${version}.tar.gz https://github.com/neilotoole/sq/releases/download/v${version}/sq-${version}-amd64-amd64.tar.gz" -checksum="1d73a814ead3205211aca852fa8c30528ec60546732cfc282105f9aa8e4556f5 - abcab9a053f759e62d516f4ab003f918c7d03385c0581c09c5ed369debd44038" +checksum="e050b32155f66a8b7413893e08cd1d8e3bd704f16e624896bdcd11267657b1eb + 7d518570e4e82f5c17ea0dc93b23a5ee6fd866a7f7b9cf456f90f3e43aa97a52" conflicts="squirrel sequoia-sq" post_extract() { mv sq-${version}/* . } +do_check() { + go test ./cli/... +} + post_install() { for shell in bash fish zsh; do vcompletion "completions/sq.${shell}" "${shell}"