Skip to content

Commit a57c6ac

Browse files
committed
fix: fix compilation on alpine linux
sha256sum in busybox doesn't support --check. go-sqlite3 fails to build: mattn/go-sqlite3#1164
1 parent 53e347b commit a57c6ac

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ require (
4343
github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef
4444
github.com/kevinburke/go-bindata v3.22.0+incompatible
4545
github.com/mattn/go-isatty v0.0.19
46-
github.com/mattn/go-sqlite3 v1.14.18
46+
github.com/mattn/go-sqlite3 v1.14.22
4747
github.com/matttproud/golang_protobuf_extensions v1.0.4
4848
github.com/mileusna/useragent v0.0.0-20190129205925-3e331f0949a5
4949
github.com/mna/pigeon v1.0.1-0.20180808201053-bb0192cfc2ae

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,8 @@ github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzp
700700
github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU=
701701
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
702702
github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
703-
github.com/mattn/go-sqlite3 v1.14.18 h1:JL0eqdCOq6DJVNPSvArO/bIV9/P7fbGrV00LZHc+5aI=
704-
github.com/mattn/go-sqlite3 v1.14.18/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
703+
github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=
704+
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
705705
github.com/mattn/go-tty v0.0.4 h1:NVikla9X8MN0SQAqCYzpGyXv0jY7MNl3HOWD2dkle7E=
706706
github.com/mattn/go-tty v0.0.4/go.mod h1:u5GGXBtZU6RQoKV8gY5W6UhMudbR5vXnUe7j3pxse28=
707707
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=

scripts/ci/test-downgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function download_older_binary () {
2929

3030
local -r archive="influxd-${target_version}.tar.gz"
3131
curl -sL -o "${dl_dir}/${archive}" "$dl_url"
32-
echo "${dl_sha} ${dl_dir}/${archive}" | sha256sum --check --
32+
echo "${dl_sha} ${dl_dir}/${archive}" | sha256sum -c --
3333
tar xzf "${dl_dir}/${archive}" -C "$dl_dir" --strip-components=1
3434
rm "${dl_dir}/${archive}"
3535
mv "${dl_dir}/influxd" "${dl_dir}/influxd-${target_version}"

scripts/fetch-ui-assets.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ curl -L https://github.com/influxdata/ui/releases/download/$UI_RELEASE/build.tar
3131
# Verify the checksums match; exit if they don't.
3232
case "$(uname -s)" in
3333
FreeBSD | Darwin)
34-
echo "$(cat sha256.txt)" | shasum --algorithm 256 --check \
34+
echo "$(cat sha256.txt)" | shasum --algorithm 256 -c \
3535
|| { echo "Checksums did not match for downloaded UI assets!"; exit 1; } ;;
3636
Linux)
37-
echo "$(cat sha256.txt)" | sha256sum --check -- \
37+
echo "$(cat sha256.txt)" | sha256sum -c -- \
3838
|| { echo "Checksums did not match for downloaded UI assets!"; exit 1; } ;;
3939
*)
4040
echo "The '$(uname -s)' operating system is not supported as a build host for the UI" >&2

0 commit comments

Comments
 (0)