File tree Expand file tree Collapse file tree 4 files changed +29
-1
lines changed Expand file tree Collapse file tree 4 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -50,3 +50,4 @@ shellcheck
50
50
shellspec
51
51
zap-pretty
52
52
act
53
+ parquet-tools
Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ bin_link=$YBIN/$bin_name
43
43
[ -z " $YSTACK_BIN_DOWNLOAD_CACHE " ] || bin_cache=" $YSTACK_BIN_DOWNLOAD_CACHE /$bin_uniq "
44
44
[ -z " $bin_cache " ] || [ ! -f " $bin_cache " ] || url=" file://$bin_cache "
45
45
echo " Missing $bin_name binary. Downloading a known version from $url ..." 1>&2
46
-
46
+ case " $url " in
47
+ * .tar.gz) ;;
48
+ * .gz) bin_file=$bin_file .gz ;;
49
+ esac
47
50
curl -o $bin_file -L -f $url
48
51
if ! echo " $sha256 $bin_file " | $SHA256SUM -c - 1>&2 ; then $SHA256SUM $bin_file && rm $bin_file && exit 1; fi
49
52
if [ ! -z " $bin_tar_path " ]; then
@@ -57,6 +60,10 @@ bin_link=$YBIN/$bin_name
57
60
(cd $tmp ; unzip $bin_file )
58
61
mv " $tmp /$bin_zip_path " $bin_file
59
62
fi
63
+ case " $url " in
64
+ * .tar.gz) ;;
65
+ * .gz) gunzip $bin_file && bin_file=$( echo $bin_file | sed ' s/\.gz$//g' ) ;;
66
+ esac
60
67
[ -z " $bin_cache " ] || [ -f " $bin_cache " ] || cp -v $bin_file $bin_cache 1>&2
61
68
chmod a+x $bin_file
62
69
}
Original file line number Diff line number Diff line change @@ -240,3 +240,15 @@ deno:
240
240
archive :
241
241
tool : zip
242
242
path : deno
243
+
244
+ parquet-tools :
245
+ version : 1.25.4
246
+ templates :
247
+ download : https://github.com/hangxie/parquet-tools/releases/download/v${version}/parquet-tools-v${version}-${os}-${arch}.gz
248
+ sha256 :
249
+ darwin_amd64 : cd3b56717a5dbb6f65be5db5a16913ce3bc1c31e9268ec8f5565f97a52ce9d47
250
+ darwin_arm64 : 5c12d0ac8450cb2ff38f06538f4b637e75f7ee338d48b87a923b0caa999fc190
251
+ linux_amd64 : 0ffb333ed4ef1d190340a38e3fafcd1c1bbfa0fc6da6dba187f774219f053817
252
+ linux_arm64 : 3d1c792e9028464d92f98ef108dccfde1bf978687fb3cfc337bff2aac71b6bfc
253
+ archive :
254
+ tool : gunzip
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ [ -z " $DEBUG " ] || set -x
3
+ set -e
4
+ YBIN=" $( dirname $0 ) "
5
+
6
+ version=$( y-bin-download $YBIN /y-bin.optional.yaml parquet-tools)
7
+
8
+ y-parquet-tools-v${version} -bin " $@ " || exit $?
You can’t perform that action at this time.
0 commit comments