golang: add version check override script

Only check versin for the compielr package.

Signed-off-by: George Sapkin <george@sapk.in>
This commit is contained in:
George Sapkin
2026-05-09 12:57:30 +03:00
parent d9fdda8cf2
commit 021d62d58f
2 changed files with 23 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
#
# SPDX-License-Identifier: GPL-2.0-only
# shellckeck shell=busybox
case "$PKG_NAME" in
golang?.??-doc|\
golang?.??-misc|\
golang?.??-src|\
golang?.??-tests)
exit 0
;;
golang?.??)
go version | grep -F " go$PKG_VERSION "
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
-2
View File
@@ -6,8 +6,6 @@ case "$1" in
golang*doc|golang*misc|golang*src|golang*tests) exit ;;
esac
go version | grep -F " go$PKG_VERSION "
cat <<'EOF' > hello.go
package main